diff --git a/cmd/update-main.go b/cmd/update-main.go index b134f497..d294459e 100644 --- a/cmd/update-main.go +++ b/cmd/update-main.go @@ -437,7 +437,7 @@ func doUpdate(customReleaseURL, sha256Hex string, latestReleaseTime time.Time, r } u, e := url.Parse(getDownloadURL(customReleaseURL, releaseTag)) - if err != nil { + if e != nil { return updateStatusMsg, probe.NewError(e) }