Skip to content

Commit ccdea2d

Browse files
committed
lint fix
1 parent c83c6a8 commit ccdea2d

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cmd/repo/rename/rename.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
package rename
22

33
import (
4-
"errors"
54
"fmt"
65
"net/http"
76

@@ -49,7 +48,7 @@ func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Co
4948
if len(args) > 0 {
5049
opts.newRepoSelector = args[0]
5150
} else if !opts.IO.CanPrompt() {
52-
return &cmdutil.FlagError{Err: errors.New("could not prompt: new name required when not running interactively")}
51+
return cmdutil.FlagErrorf("could not prompt: new name required when not running interactively")
5352
}
5453

5554
if runf != nil {

0 commit comments

Comments
 (0)