lint and comment

pull/4504/head
Medya Gh 2019-06-15 22:55:57 -07:00
parent 5176806eb2
commit 4fd29be51c
2 changed files with 2 additions and 2 deletions

View File

@ -57,7 +57,7 @@ var ProfileCmd = &cobra.Command{
console.ErrLn("Error loading profile config: %v", err)
}
// don't change context is user has started the minikube with --keep-context
if cc.MachineConfig.KeepContext == false {
if !cc.MachineConfig.KeepContext {
err = pkgutil.SetCurrentContext(constants.KubeconfigPath, profile)
console.ErrLn("error while setting kubectl current context : %v", err)
}

View File

@ -30,7 +30,7 @@ type Config struct {
// MachineConfig contains the parameters used to start a cluster.
type MachineConfig struct {
KeepContext bool // used by start and profile command to or not to switch kubectl current context
KeepContext bool // used by start and profile command to or not to switch kubectl's current context
MinikubeISO string
Memory int
CPUs int