Fix go-critic suggestions

This commit is contained in:
Oleg Kovalov
2022-08-17 19:37:58 +02:00
parent c172185a24
commit b08eac58e9
8 changed files with 13 additions and 13 deletions

View File

@@ -30,7 +30,7 @@ func InitTaskfile(w io.Writer, dir string) error {
return ErrTaskfileAlreadyExists
}
if err := os.WriteFile(f, []byte(defaultTaskfile), 0644); err != nil {
if err := os.WriteFile(f, []byte(defaultTaskfile), 0o644); err != nil {
return err
}
fmt.Fprintf(w, "Taskfile.yaml created in the current directory\n")