Skip to content

Commit b2f795e

Browse files
Copilottobio
andcommitted
Refactor removeNulls to use explicit continue statements
Co-authored-by: tobio <444668+tobio@users.noreply.github.com>
1 parent bb44732 commit b2f795e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

internal/kibana/connectors/config_value.go

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,12 @@ func removeNulls(m map[string]interface{}) {
8282
for key, value := range m {
8383
if value == nil {
8484
delete(m, key)
85-
} else if nestedMap, ok := value.(map[string]interface{}); ok {
85+
continue
86+
}
87+
88+
if nestedMap, ok := value.(map[string]interface{}); ok {
8689
removeNulls(nestedMap)
90+
continue
8791
}
8892
}
8993
}

0 commit comments

Comments
 (0)