mirror of
https://github.com/strukturag/nextcloud-spreed-signaling
synced 2026-03-14 14:35:44 +01:00
Fix ordering of case statements (found by "gocritic").
This commit is contained in:
parent
f795bf303d
commit
694297a6f4
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue