1
0
mirror of https://github.com/go-task/task.git synced 2025-11-23 22:24:45 +02:00

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

@@ -73,7 +73,7 @@ func IsExitError(err error) bool {
// if available.
func Expand(s string) (string, error) {
s = filepath.ToSlash(s)
s = strings.Replace(s, " ", `\ `, -1)
s = strings.ReplaceAll(s, " ", `\ `)
fields, err := shell.Fields(s, nil)
if err != nil {
return "", err