Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
ilya-zuyev committed Jun 22, 2021
1 parent d13b80f commit 88ade35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pkg/minikube/cruntime/cruntime.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,11 +272,11 @@ var requiredContainerdVersion = semver.MustParse("1.4.0")

// compatibleWithVersion checks if current version of "runtime" is compatible with version "v"
func compatibleWithVersion(runtime, v string) error {
vv, err := semver.Make(v)
if err != nil {
return err
}
if runtime == "containerd" {
vv, err := semver.Make(v)
if err != nil {
return err
}
if requiredContainerdVersion.GT(vv) {
return NewErrServiceVersion(runtime, requiredContainerdVersion.String(), vv.String())
}
Expand Down

0 comments on commit 88ade35

Please sign in to comment.