Skip to content

Commit 7f0726a

Browse files
committed
chore: fix non-constant format string in call to fmt.Fprintf
Signed-off-by: Tyler Gillson <[email protected]>
1 parent 71c9c18 commit 7f0726a

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

pkg/cmd/init/exec.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -385,8 +385,7 @@ func (o *Options) deploySingletonControlplane(kubeClient kubernetes.Interface) e
385385
return err
386386
}
387387

388-
fmt.Fprintf(o.Streams.Out, "The multicluster controlplane has been initialized successfully!\n"+
389-
"You can use "+fmt.Sprintf("\"kubectl --kubeconfig %s\"", kubeconfigfile)+" to access control plane.\n\n")
388+
fmt.Fprintf(o.Streams.Out, "The multicluster controlplane has been initialized successfully!\nYou can use \"kubectl --kubeconfig %s\" to access control plane.\n\n", kubeconfigfile)
390389
}
391390
return nil
392391
}

0 commit comments

Comments
 (0)