make linter happy

pull/11024/head
Ilya Zuyev 2021-04-08 11:14:03 -07:00
parent 9a3157950f
commit b2aa1e56aa
2 changed files with 3 additions and 3 deletions

View File

@ -97,7 +97,7 @@ func Execute() {
if runtime.GOOS == "darwin" && detect.IsAmd64M1Emulation() {
exit.Message(reason.WrongBinaryM1, "You are trying to run amd64 binary on M1 system. Please use darwin/arm64 binary instead (Download at {{.url}}.",
out.V{"url": notify.DownloadUrl(version.GetVersion(), "darwin", "amd64")})
out.V{"url": notify.DownloadURL(version.GetVersion(), "darwin", "amd64")})
}
_, callingCmd := filepath.Split(os.Args[0])

View File

@ -153,8 +153,8 @@ func getTimeFromFileIfExists(path string) time.Time {
return timeInFile
}
// DownloadUrl returns a URL to get minikube binary version ver for platform os/arch
func DownloadUrl(ver, os, arch string) string {
// DownloadURL returns a URL to get minikube binary version ver for platform os/arch
func DownloadURL(ver, os, arch string) string {
if ver == "" || strings.HasSuffix(ver, "-unset") || os == "" || arch == "" {
return "https://github.com/kubernetes/minikube/releases"
}