From d76d543f96681fa139901346fe4e3b48b00427ce Mon Sep 17 00:00:00 2001 From: Thiago Ribeiro <62709592+thiagodeev@users.noreply.github.com> Date: Mon, 22 Jun 2026 22:47:16 -0300 Subject: [PATCH 1/2] Update nil.go Signed-off-by: Thiago Ribeiro <62709592+thiagodeev@users.noreply.github.com> --- utils/nil.go | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/nil.go b/utils/nil.go index 8652c9911d..a94e3488fb 100644 --- a/utils/nil.go +++ b/utils/nil.go @@ -19,6 +19,7 @@ import "reflect" // hence calling IsNil() will cause a panic. func IsNil(i any) bool { if i == nil { + return true } From 37a8c446aa11db9fc68d11dd2ff7597aef24d8e9 Mon Sep 17 00:00:00 2001 From: Thiago Ribeiro <62709592+thiagodeev@users.noreply.github.com> Date: Mon, 22 Jun 2026 22:54:46 -0300 Subject: [PATCH 2/2] Update nil.go Signed-off-by: Thiago Ribeiro <62709592+thiagodeev@users.noreply.github.com> --- utils/nil.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/utils/nil.go b/utils/nil.go index a94e3488fb..d263acc7a1 100644 --- a/utils/nil.go +++ b/utils/nil.go @@ -16,10 +16,9 @@ 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 }