Make lint happy by not using else statement
parent
bc62a9f1bd
commit
0d22fe24ae
|
@ -79,20 +79,20 @@ host. Please be aware that when using --ssh all paths will apply to the remote m
|
|||
os.Exit(1)
|
||||
}
|
||||
return
|
||||
} else {
|
||||
supported := false
|
||||
arch := detect.RuntimeArchitecture()
|
||||
for _, a := range constants.SupportedArchitectures {
|
||||
if arch == a {
|
||||
supported = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !supported {
|
||||
fmt.Fprintf(os.Stderr, "Not supported on: %s\n", arch)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
supported := false
|
||||
arch := detect.RuntimeArchitecture()
|
||||
for _, a := range constants.SupportedArchitectures {
|
||||
if arch == a {
|
||||
supported = true
|
||||
break
|
||||
}
|
||||
}
|
||||
if !supported {
|
||||
fmt.Fprintf(os.Stderr, "Not supported on: %s\n", arch)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
if len(args) > 1 && args[0] != "--help" {
|
||||
cluster := []string{"--cluster", cname}
|
||||
|
|
Loading…
Reference in New Issue