Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
cpanato committed Mar 27, 2024
1 parent b937d00 commit 513c81c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/advisory/export.go
Expand Up @@ -217,7 +217,7 @@ func ExportOSV(opts ExportOptions, output string) error {
}

filepath := path.Join(output, fmt.Sprintf("%s-%s.json", strings.ToUpper(string(opts.Ecosystem)), k))
err = os.WriteFile(filepath, e, 0644)
err = os.WriteFile(filepath, e, 0o600)

Check failure on line 220 in pkg/advisory/export.go

View workflow job for this annotation

GitHub Actions / lint

ineffectual assignment to err (ineffassign)
}

return nil
Expand Down

0 comments on commit 513c81c

Please sign in to comment.