Skip to content

Commit

Permalink
common: ignore gosec bug
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleyzissou committed Oct 21, 2021
1 parent 7e3a2c4 commit 0bd96e4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/common/distribution.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ func ReadDistributions(distsDir, distro string) ([]DistributionFile, error) {
if err != nil {
return err
}
// nosec because of https://github.com/securego/gosec/issues/714
/* #nosec G307 */
defer func() {
err := f.Close()
if err != nil {
Expand Down Expand Up @@ -142,6 +144,8 @@ func FindPackages(distsDir, distro, arch, search string) ([]Package, error) {
if err != nil {
return nil, err
}
// nosec because of https://github.com/securego/gosec/issues/714
/* #nosec G307 */
defer func() {
err := f.Close()
if err != nil {
Expand Down

0 comments on commit 0bd96e4

Please sign in to comment.