Skip to content

Commit

Permalink
update code
Browse files Browse the repository at this point in the history
  • Loading branch information
muidea committed Sep 25, 2023
1 parent eb37087 commit 81ae308
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions provider/helper/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ func toStructValue(rVal model.Value, lType model.Type) (ret model.Value, err err
return
}
if objectValuePtr == nil {
ret = &remote.NilValue
ret = &local.NilValue
return
}

Expand All @@ -213,7 +213,7 @@ func toStructSliceValue(rVal model.Value, lType model.Type) (ret model.Value, er
return
}
if sliceObjectValuePtr == nil {
ret = &remote.NilValue
ret = &local.NilValue
return
}

Expand Down
1 change: 0 additions & 1 deletion provider/helper/remote.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ func newType(itemType reflect.Type) (ret *remote.TypeImpl, err error) {
}

ret = &remote.TypeImpl{Name: itemType.Name(), Value: typeVal, PkgPath: itemType.PkgPath(), IsPtr: isPtr}
//ret.ElemType = &TypeImpl{Name: itemType.Name(), Value: typeVal, PkgPath: itemType.PkgPath(), IsPtr: isPtr}
return
}

Expand Down

0 comments on commit 81ae308

Please sign in to comment.