From d67a34662ea3ef29a0197bce89a30af251494c5d Mon Sep 17 00:00:00 2001 From: Tommie Gannert Date: Tue, 4 Oct 2022 12:31:40 +0200 Subject: [PATCH] Attempt to disable a goconst lint check. --- setup/config/config.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/setup/config/config.go b/setup/config/config.go index f82ecb970..8fd82d1cd 100644 --- a/setup/config/config.go +++ b/setup/config/config.go @@ -415,8 +415,8 @@ func checkURL(configErrs *ConfigErrors, key, value string) { return } switch url.Scheme { - case "http": - case "https": + case "http": // nolint:goconst + case "https": // nolint:goconst default: configErrs.Add(fmt.Sprintf("config key %q URL should be http:// or https://", key)) return @@ -435,8 +435,8 @@ func checkIconURL(configErrs *ConfigErrors, key, value string) { return } switch url.Scheme { - case "http": - case "https": + case "http": // nolint:goconst + case "https": // nolint:goconst case "mxc": default: configErrs.Add(fmt.Sprintf("invalid URL scheme for config key %q: %s", key, value))