Skip to content

Commit

Permalink
Issue-309|Fixed append for JsonDataAccessLayer (#341)
Browse files Browse the repository at this point in the history
Co-authored-by: Rajat Paliwal <Rajat.Paliwal@sophos.com>
  • Loading branch information
rajat002 and rajatpaliwal86 authored Dec 15, 2022
1 parent f1ad047 commit b4475ad
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions model/JsonDataAccessLayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,11 @@ func (vn *JSONValueNode) CallFunction(funcName string, args ...reflect.Value) (r
case "Len":
arrFunc = ArrMapLen
case "Append":
vn.AppendValue(args)
return reflect.Value{}, nil
err := vn.AppendValue(args)
if err != nil {
return reflect.Value{}, err
}
return vn.data, nil
}
if arrFunc != nil {
if funcName == "Clear" {
Expand Down

0 comments on commit b4475ad

Please sign in to comment.