Skip to content

Commit

Permalink
use Create file instead of OpenFile (#69)
Browse files Browse the repository at this point in the history
Signed-off-by: Dominique Vernier <[email protected]>
  • Loading branch information
itdove authored Oct 12, 2021
1 parent 754fa73 commit d275d82
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/helpers/apply/apply.go
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ func WriteOutput(fileName string, output []string) (err error) {
if fileName == "" {
return nil
}
f, err := os.OpenFile(filepath.Clean(fileName), os.O_WRONLY|os.O_CREATE, 0600)
f, err := os.Create(filepath.Clean(fileName))
if err != nil {
return err
}
Expand Down

0 comments on commit d275d82

Please sign in to comment.