Skip to content

Commit

Permalink
fix: close settings.xml (#6768)
Browse files Browse the repository at this point in the history
Signed-off-by: guoguangwu <guoguangwug@gmail.com>
  • Loading branch information
testwill authored May 24, 2024
1 parent 20781e5 commit 9c3e895
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 9c3e895

Please sign in to comment.