From 9789e5b0fe4fd53eb979fc200db4e06bbf679364 Mon Sep 17 00:00:00 2001 From: Eugene Burkov Date: Wed, 27 Nov 2024 17:16:45 +0300 Subject: [PATCH] Pull request 2311: 7465 Fix nil dereference Squashed commit of the following: commit e4943c2b064ff0647d0e3bd2e6431bb94f151ba5 Author: Eugene Burkov Date: Wed Nov 27 17:05:32 2024 +0300 home: fix nil dereference --- internal/home/home.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/home/home.go b/internal/home/home.go index da146a6d..5f573876 100644 --- a/internal/home/home.go +++ b/internal/home/home.go @@ -726,7 +726,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()