Skip to content

Commit

Permalink
chore: use errors.New to replace fmt.Errorf with no parameters
Browse files Browse the repository at this point in the history
Signed-off-by: RiceChuan <[email protected]>
  • Loading branch information
RiceChuan committed Dec 15, 2024
1 parent d0d9e8b commit 9629a23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/cmd/app.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
package cmd

import (
"errors"
"cmp"
"fmt"
"net/url"
Expand Down Expand Up @@ -222,7 +223,7 @@ func NewApp(s *Shell) *cli.App {
},
},
Before: func(c *cli.Context) error {
errNoDuplicateFlags := fmt.Errorf("multiple commands with --config or --secrets flags. only one command may specify these flags. when secrets are used, they must be specific together in the same command")
errNoDuplicateFlags := errors.New("multiple commands with --config or --secrets flags. only one command may specify these flags. when secrets are used, they must be specific together in the same command")
if c.IsSet("config") {
if s.configFilesIsSet || s.secretsFileIsSet {
return errNoDuplicateFlags
Expand Down

0 comments on commit 9629a23

Please sign in to comment.