Skip to content

Commit

Permalink
Replace With Simpler Check
Browse files Browse the repository at this point in the history
Signed-off-by: Mahad Zaryab <[email protected]>
  • Loading branch information
mahadzaryab1 committed Nov 25, 2024
1 parent 4a58881 commit 57ffb80
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion confmap/confmap.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ func sanitizeExpanded(a any, useOriginal bool) any {
return c
case []any:
var newSlice []any
if reflect.ValueOf(m).IsNil() {
if m == nil {
return newSlice
}
newSlice = []any{}
Expand Down

0 comments on commit 57ffb80

Please sign in to comment.