modernize + gofumpt

This commit is contained in:
2025-04-19 22:19:02 -07:00
parent 87344dd601
commit 0996167865
18 changed files with 32 additions and 37 deletions

View File

@@ -168,6 +168,9 @@ func CheckVersion(version, minimumVersion string) bool {
if version == "dev-snapshot" {
return true
}
if idx := strings.Index(version, "/"); idx >= 0 {
version = version[0:idx]
}
if semver.Compare(version, minimumVersion) < 0 {
// log.Debug("version too old", "v", cl.Version.Version)
return false