From f76fa7770ce9a5edafed81b5ff26ca79949967d1 Mon Sep 17 00:00:00 2001 From: cld9x <> Date: Mon, 13 Jul 2020 14:24:19 +0200 Subject: [PATCH] Drop semver for version check --- pkg/xbvr/api_options.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/pkg/xbvr/api_options.go b/pkg/xbvr/api_options.go index 1cab1055b..48345e9af 100644 --- a/pkg/xbvr/api_options.go +++ b/pkg/xbvr/api_options.go @@ -11,7 +11,6 @@ import ( "strings" "time" - "github.com/blang/semver" "github.com/emicklei/go-restful" restfulspec "github.com/emicklei/go-restful-openapi" "github.com/jinzhu/gorm" @@ -145,9 +144,7 @@ func (i ConfigResource) versionCheck(req *restful.Request, resp *restful.Respons out.LatestVersion = gjson.Get(r.String(), "latestVersion").String() // Decide if UI notification is needed - sLatest := semver.MustParse(out.LatestVersion) - sCurrent := semver.MustParse(common.CurrentVersion) - if sLatest.GT(sCurrent) { + if out.LatestVersion != common.CurrentVersion { out.UpdateNotify = true } }