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 070a378 commit 1b5f6ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/common/distribution.go
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 1b5f6ff

Please sign in to comment.