address lint concerns

pull/12885/head
Steven Powell 2021-11-08 09:23:00 -05:00
parent 09328fd571
commit 69aa495d02
2 changed files with 3 additions and 3 deletions

View File

@ -103,10 +103,10 @@ func recentReleases(n int) ([]string, error) {
foundDefault := false
for _, v := range versions {
if strings.HasPrefix(constants.NewestKubernetesVersion, v) {
if strings.HasPrefix(constants.NewestKubernetesVersion, v) { //nolint:gocritic // Complains "constants.NewestKubernetesVersion and v arguments order looks reversed"
foundNewest = true
}
if strings.HasPrefix(constants.DefaultKubernetesVersion, v) {
if strings.HasPrefix(constants.DefaultKubernetesVersion, v) { //nolint:gocritic // Same as above
foundDefault = true
}
}

View File

@ -293,7 +293,7 @@ func prepareTempMinikubeDirWithHyperkitDriver(name, driver string) (string, stri
}
// try to copy cached files to the temp minikube folder to avoid downloading of iso and preloads
_ = CopyDir(filepath.Join(localpath.MakeMiniPath("cache")), filepath.Join(mkDir, "cache"))
_ = CopyDir(localpath.MakeMiniPath("cache"), filepath.Join(mkDir, "cache"))
// change permission to allow driver to be executable
if err = os.Chmod(testDriverPath, 0755); err != nil {