Attempt to disable a goconst lint check.

This commit is contained in:
Tommie Gannert 2022-10-04 12:31:40 +02:00
parent 808eb2279b
commit d67a34662e

View file

@ -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))