Skip to content

Commit

Permalink
Add missing file close
Browse files Browse the repository at this point in the history
  • Loading branch information
Samze committed Jul 8, 2024
1 parent 69dc1a7 commit 27d6334
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cf/api/buildpack_bits.go
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,7 @@ func (repo CloudControllerBuildpackBitsRepository) CreateBuildpackZipFile(buildp
if err != nil {
return nil, "", fmt.Errorf("%s: %s", T("Couldn't open buildpack file"), err.Error())
}
defer specifiedFile.Close()
err = normalizeBuildpackArchive(specifiedFile, zipFileToUpload)
if err != nil {
return nil, "", zipErrorHelper(err)
Expand Down

0 comments on commit 27d6334

Please sign in to comment.