mirror of
https://github.com/pocketbase/pocketbase.git
synced 2026-10-24 23:10:24 +02:00
[#1939] removed redundant COALESCE normalizations
This commit is contained in:
1 parent
5cbdbf6c10
commit
67ecebe935
9 files changed
+81
-44
No files matched your search
@@ -252,10 +252,8 @@ func extractNestedMapVal(m map[string]any, keys ...string) (any, error) {
|
||||
return nil, fmt.Errorf("at least one key should be provided")
|
||||
}
|
||||
|
||||
var result any
|
||||
var ok bool
|
||||
|
||||
if result, ok = m[keys[0]]; !ok {
|
||||
result, ok := m[keys[0]]
|
||||
if !ok {
|
||||
return nil, fmt.Errorf("invalid key path - missing key %q", keys[0])
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user