refactor: use errors.New to replace fmt.Errorf with no parameters (#19548)
This commit is contained in:
+1
-1
@@ -550,7 +550,7 @@ var stringsBuilderPool = &sync.Pool{
|
||||
// (instead of manipulating the int or math.Int object).
|
||||
func FormatInt(v string) (string, error) {
|
||||
if len(v) == 0 {
|
||||
return "", fmt.Errorf("cannot format empty string")
|
||||
return "", errors.New("cannot format empty string")
|
||||
}
|
||||
|
||||
sign := ""
|
||||
|
||||
Reference in New Issue
Block a user