Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion utils/nil.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ import "reflect"
//
// A solution for this is to use i == nil || reflect.ValueOf(i).IsNil()), however, this can cause a panic as not all
// reflect.Value has IsNil() defined. Therefore, default is to return false. For example, reflect.Array cannot be nil,
// hence calling IsNil() will cause a panic.
// hence calling IsNil() will cause a great panic.
func IsNil(i any) bool {
if i == nil {
return true
Expand Down
Loading