style: more linting (#15618)

This commit is contained in:
Marko
2023-03-30 13:00:18 +00:00
committed by GitHub
parent c1ea84d583
commit 51f3e70a12
34 changed files with 68 additions and 82 deletions
+1 -1
View File
@@ -203,7 +203,7 @@ func writeFile(name, dir string, contents []byte) error {
return fmt.Errorf("could not create directory %q: %w", dir, err)
}
if err := os.WriteFile(file, contents, 0o644); err != nil { //nolint: gosec
if err := os.WriteFile(file, contents, 0o600); err != nil {
return err
}