chore(all): replace all fmt.Errorf without paramters with errors.New (#21068)

This commit is contained in:
yukionfire
2024-07-25 14:54:49 +02:00
committed by GitHub
parent 6a2d039e12
commit d6ad92db0f
57 changed files with 127 additions and 103 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
package testutil_test
import (
"errors"
"fmt"
"testing"
@@ -21,7 +22,7 @@ func TestSetArgsWithOriginalMethod(t *testing.T) {
c, _ := cmd.Flags().GetBool("c")
switch {
case a && b, a && c, b && c:
return fmt.Errorf("a,b,c only one could be true")
return errors.New("a,b,c only one could be true")
}
return nil
},