Skip to content

Commit

Permalink
spelling: is strictly equal
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Soref <[email protected]>
  • Loading branch information
jsoref committed Nov 20, 2024
1 parent 5ee9ea4 commit b9504f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/dcl/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func TrimNilFields(m map[string]interface{}) {
}
}

// An interface value strictly equals to nil only if the V (actual value) and T (type) are both unset;
// An interface value is strictly equal to nil only if the V (actual value) and T (type) are both unset;
// we want to treat interface values like (T=[]interface{}, V=nil) as nil too since the actual value is nil.
func IsNil(v interface{}) bool {
if v == nil {
Expand Down

0 comments on commit b9504f0

Please sign in to comment.