Pull request 2311: 7465 Fix nil dereference

Squashed commit of the following:

commit e4943c2b064ff0647d0e3bd2e6431bb94f151ba5
Author: Eugene Burkov <E.Burkov@AdGuard.COM>
Date:   Wed Nov 27 17:05:32 2024 +0300

    home: fix nil dereference
This commit is contained in:
Eugene Burkov 2024-11-27 17:16:45 +03:00
parent 4a49c4db96
commit 9789e5b0fe

View file

@ -726,7 +726,7 @@ func newUpdater(
} }
err := urlutil.ValidateHTTPURL(versionURL) err := urlutil.ValidateHTTPURL(versionURL)
if customURL = err == nil; customURL { if customURL = err == nil; !customURL {
l.DebugContext(ctx, "parsing custom version url", slogutil.KeyError, err) l.DebugContext(ctx, "parsing custom version url", slogutil.KeyError, err)
versionURL = updater.DefaultVersionURL() versionURL = updater.DefaultVersionURL()