From 74e4d6f7b04a37abb0dbfdab6532dfa8f63cd53f Mon Sep 17 00:00:00 2001 From: Anton Troshin Date: Thu, 21 Nov 2024 21:23:40 -0600 Subject: [PATCH] do not return error on nil, skip bad versions Signed-off-by: Anton Troshin --- pkg/version/version.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/version/version.go b/pkg/version/version.go index 521cc85fe..ec1503ef4 100644 --- a/pkg/version/version.go +++ b/pkg/version/version.go @@ -130,7 +130,7 @@ func GetLatestReleaseGithub(githubURL string) (string, error) { // just a safety check to make sure we don't get a nil version. // all errors should be handled above. if cur == nil { - return "", fmt.Errorf("failed to parse version %s, resulted in nil version", release.TagName) + continue } if cur.GreaterThan(latestVersion) { latestVersion = cur