Skip to content

Commit 624f197

Browse files
committed
minor fix
1 parent dd98c7f commit 624f197

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
@@ -78,8 +78,6 @@ func NewCmdRename(f *cmdutil.Factory, runf func(*RenameOptions) error) *cobra.Co
7878
}
7979

8080
func renameRun(opts *RenameOptions) error {
81-
82-
cs := opts.IO.ColorScheme()
8381
httpClient, err := opts.HttpClient()
8482
if err != nil {
8583
return err
@@ -151,6 +149,7 @@ func renameRun(opts *RenameOptions) error {
151149
}
152150

153151
if opts.IO.IsStdoutTTY() {
152+
cs := opts.IO.ColorScheme()
154153
fmt.Fprintf(opts.IO.Out, "%s Renamed repository %s\n", cs.SuccessIcon(), input.RepoOwner+"/"+input.Name)
155154
if opts.newRepoSelector == "" {
156155
fmt.Fprintf(opts.IO.Out, "%s Updated the %q remote", cs.SuccessIcon(), baseRemote.Name)

0 commit comments

Comments
 (0)