lint fix
This commit is contained in:
parent
c83c6a83e6
commit
ccdea2db6d
1 changed files with 1 additions and 2 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package rename
|
||||
|
||||
import (
|
||||
"errors"
|
||||
"fmt"
|
||||
"net/http"
|
||||
|
||||
|
|
@ -49,7 +48,7 @@ func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Co
|
|||
if len(args) > 0 {
|
||||
opts.newRepoSelector = args[0]
|
||||
} else if !opts.IO.CanPrompt() {
|
||||
return &cmdutil.FlagError{Err: errors.New("could not prompt: new name required when not running interactively")}
|
||||
return cmdutil.FlagErrorf("could not prompt: new name required when not running interactively")
|
||||
}
|
||||
|
||||
if runf != nil {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue