chore: use errors.New to replace fmt.Errorf with no parameters will much better (#30621)

use errors.New to replace fmt.Errorf with no parameters will much better
This commit is contained in:
Cheng authored and GitHub committed 2024-04-21 19:44:03 +00:00
1 parent f95622cddc
commit 9de443ced2
10 files changed
+21 -15

No files matched your search

+2 -1
View File
@@ -4,6 +4,7 @@
package cmd
import (
"errors"
"fmt"
"net/url"
@@ -193,7 +194,7 @@ func runAddOauth(c *cli.Context) error {
func runUpdateOauth(c *cli.Context) error {
if !c.IsSet("id") {
return fmt.Errorf("--id flag is missing")
return errors.New("--id flag is missing")
}
ctx, cancel := installSignals()