Skip to content

Commit

Permalink
hotfix: panic when no test update url env set
Browse files Browse the repository at this point in the history
  • Loading branch information
hoang-rio committed Nov 27, 2024
1 parent 2c2febf commit d36b1b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/home/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -727,7 +727,7 @@ func newUpdater(
}

err := urlutil.ValidateHTTPURL(versionURL)
if customURL = err == nil; customURL {
if customURL = err == nil; !customURL {
l.DebugContext(ctx, "parsing custom version url", slogutil.KeyError, err)

versionURL = updater.DefaultVersionURL()
Expand Down

0 comments on commit d36b1b9

Please sign in to comment.