Make lint happy by not using else statement

pull/11060/head
Anders F Björklund 2021-04-10 16:00:00 +02:00
parent bc62a9f1bd
commit 0d22fe24ae
1 changed files with 12 additions and 12 deletions

View File

@ -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}