Skip to content

Commit

Permalink
fix: close settings.xml
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <[email protected]>
  • Loading branch information
testwill committed May 24, 2024
1 parent 20781e5 commit 0eb4a2d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/dependency/parser/java/pom/settings.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ func openSettings(filePath string) (settings, error) {
if err != nil {
return settings{}, err
}
defer f.Close()

s := settings{}
decoder := xml.NewDecoder(f)
Expand Down

0 comments on commit 0eb4a2d

Please sign in to comment.