@@ -403,36 +403,36 @@ func (n *runtimeJavascriptNakamaModule) storageIndexList(r *goja.Runtime) func(g
403
403
objects := make ([]any , 0 , len (objectList .Objects ))
404
404
for _ , o := range objectList .Objects {
405
405
obj := r .NewObject ()
406
- obj .Set ("key" , o .Key )
407
- obj .Set ("collection" , o .Collection )
406
+ _ = obj .Set ("key" , o .Key )
407
+ _ = obj .Set ("collection" , o .Collection )
408
408
if o .UserId != "" {
409
- obj .Set ("userId" , o .UserId )
409
+ _ = obj .Set ("userId" , o .UserId )
410
410
} else {
411
- obj .Set ("userId" , nil )
411
+ _ = obj .Set ("userId" , nil )
412
412
}
413
- obj .Set ("version" , o .Version )
414
- obj .Set ("permissionRead" , o .PermissionRead )
415
- obj .Set ("permissionWrite" , o .PermissionWrite )
416
- obj .Set ("createTime" , o .CreateTime .Seconds )
417
- obj .Set ("updateTime" , o .UpdateTime .Seconds )
413
+ _ = obj .Set ("version" , o .Version )
414
+ _ = obj .Set ("permissionRead" , o .PermissionRead )
415
+ _ = obj .Set ("permissionWrite" , o .PermissionWrite )
416
+ _ = obj .Set ("createTime" , o .CreateTime .Seconds )
417
+ _ = obj .Set ("updateTime" , o .UpdateTime .Seconds )
418
418
419
419
valueMap := make (map [string ]interface {})
420
420
err = json .Unmarshal ([]byte (o .Value ), & valueMap )
421
421
if err != nil {
422
422
panic (r .NewGoError (fmt .Errorf ("failed to convert value to json: %s" , err .Error ())))
423
423
}
424
424
pointerizeSlices (valueMap )
425
- obj .Set ("value" , valueMap )
425
+ _ = obj .Set ("value" , valueMap )
426
426
427
427
objects = append (objects , obj )
428
428
}
429
429
430
430
outObj := r .NewObject ()
431
- outObj .Set ("objects" , r .NewArray (objects ... ))
431
+ _ = outObj .Set ("objects" , r .NewArray (objects ... ))
432
432
if newCursor != "" {
433
- outObj .Set ("cursor" , newCursor )
433
+ _ = outObj .Set ("cursor" , newCursor )
434
434
} else {
435
- outObj .Set ("cursor" , goja .Null ())
435
+ _ = outObj .Set ("cursor" , goja .Null ())
436
436
}
437
437
438
438
return r .ToValue (outObj )
0 commit comments