Skip to content

Commit 32aec16

Browse files
committed
🧹 return empty DataRes when value not set
1 parent fc07e37 commit 32aec16

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

providers-sdk/v1/plugin/runtime.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,7 @@ type TValue[T any] struct {
196196

197197
func (x *TValue[T]) ToDataRes(typ types.Type) *DataRes {
198198
if !x.IsSet() {
199-
return &DataRes{
200-
Data: &llx.Primitive{Type: string(types.Nil)},
201-
}
199+
return &DataRes{}
202200
}
203201
if x.IsNull() {
204202
if x.Error != nil {

0 commit comments

Comments
 (0)