Skip to content

Commit

Permalink
fix: close plugin.yaml (aquasecurity#6577)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill authored Apr 29, 2024
1 parent 8e6cd0e commit 916f6c6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/plugin/plugin.go
Original file line number Diff line number Diff line change
Expand Up @@ -354,6 +354,7 @@ func loadMetadata(dir string) (Plugin, error) {
if err != nil {
return Plugin{}, xerrors.Errorf("file open error: %w", err)
}
defer f.Close()

var plugin Plugin
if err = yaml.NewDecoder(f).Decode(&plugin); err != nil {
Expand Down

0 comments on commit 916f6c6

Please sign in to comment.