mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-21 04:53:14 -06:00
Attempt to disable a goconst lint check.
This commit is contained in:
parent
808eb2279b
commit
d67a34662e
|
|
@ -415,8 +415,8 @@ func checkURL(configErrs *ConfigErrors, key, value string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch url.Scheme {
|
switch url.Scheme {
|
||||||
case "http":
|
case "http": // nolint:goconst
|
||||||
case "https":
|
case "https": // nolint:goconst
|
||||||
default:
|
default:
|
||||||
configErrs.Add(fmt.Sprintf("config key %q URL should be http:// or https://", key))
|
configErrs.Add(fmt.Sprintf("config key %q URL should be http:// or https://", key))
|
||||||
return
|
return
|
||||||
|
|
@ -435,8 +435,8 @@ func checkIconURL(configErrs *ConfigErrors, key, value string) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch url.Scheme {
|
switch url.Scheme {
|
||||||
case "http":
|
case "http": // nolint:goconst
|
||||||
case "https":
|
case "https": // nolint:goconst
|
||||||
case "mxc":
|
case "mxc":
|
||||||
default:
|
default:
|
||||||
configErrs.Add(fmt.Sprintf("invalid URL scheme for config key %q: %s", key, value))
|
configErrs.Add(fmt.Sprintf("invalid URL scheme for config key %q: %s", key, value))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue