all: Clean up fmt.Errorf usage (#8309)

This commit is contained in:
greatroar
2022-04-27 20:30:13 +02:00
committed by GitHub
parent 4031568cdf
commit 49488c0e71
4 changed files with 11 additions and 8 deletions
+3 -2
View File
@@ -8,6 +8,7 @@ package cli
import (
"bufio"
"errors"
"fmt"
"path/filepath"
@@ -77,12 +78,12 @@ func foldersOverride(c *cli.Context) error {
if body != "" {
errStr += "\nBody: " + body
}
return fmt.Errorf(errStr)
return errors.New(errStr)
}
return nil
}
}
return fmt.Errorf("Folder " + rid + " not found")
return fmt.Errorf("Folder %q not found", rid)
}
func setDefaultIgnores(c *cli.Context) error {