mirror of
https://github.com/go-task/task.git
synced 2026-05-18 13:15:41 +02:00
Fix go-critic suggestions
This commit is contained in:
2
init.go
2
init.go
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user