Skip to content

Commit 300ab2e

Browse files
committed
close the file
1 parent 635f9cf commit 300ab2e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

bundle/deployplan/plan.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ func LoadPlanFromFile(path string) (*Plan, error) {
4141
if err != nil {
4242
return nil, fmt.Errorf("reading plan file: %w", err)
4343
}
44+
defer file.Close()
4445
var plan Plan
4546
decoder := json.NewDecoder(file)
4647
decoder.DisallowUnknownFields()

0 commit comments

Comments
 (0)