Skip to content

Commit

Permalink
lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
pxrth9 committed Oct 25, 2021
1 parent c83c6a8 commit ccdea2d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cmd/repo/rename/rename.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package rename

import (
"errors"
"fmt"
"net/http"

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit ccdea2d

Please sign in to comment.