From 1bf6c2f5f2075ad6a81e1188e8cd631c14dc8d35 Mon Sep 17 00:00:00 2001 From: Reza Date: Tue, 12 Mar 2024 11:15:38 +0100 Subject: [PATCH] fix --- lib/generic/generic.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/generic/generic.go b/lib/generic/generic.go index 044ffb9..ba8cb24 100644 --- a/lib/generic/generic.go +++ b/lib/generic/generic.go @@ -76,10 +76,10 @@ func (v Value) IsNil() bool { } func (v Value) direct() any { - ref := reflect.ValueOf(v.Input) if v.Input == nil { - return "" + return nil } + ref := reflect.ValueOf(v.Input) if !ref.IsValid() { return nil }