Fix ordering of case statements (found by "gocritic").

This commit is contained in:
Joachim Bauch 2025-12-04 10:59:00 +01:00
commit 694297a6f4
No known key found for this signature in database
GPG key ID: 77C1D22D53E15F02

View file

@ -68,10 +68,10 @@ func GetStringMapString[T ~string](m StringMap, key string) (T, bool) {
}
switch v := v.(type) {
case T:
return v, true
case string:
return T(v), true
case T:
return v, true
default:
return defaultValue, false
}