mirror of
https://github.com/fuse-friends/fuse-native
synced 2024-10-27 18:34:01 +00:00
make return code optional
This commit is contained in:
parent
dc50eb6005
commit
b3db64d034
@ -746,7 +746,7 @@ NAN_METHOD(OpCallback) {
|
||||
NanScope();
|
||||
|
||||
bindings_t *b = bindings_mounted[args[0]->Uint32Value()];
|
||||
b->result = args[1]->Uint32Value();
|
||||
b->result = (args.Length() > 1 && args[1]->IsNumber()) ? args[1]->Uint32Value() : 0;
|
||||
|
||||
if (!b->result) {
|
||||
switch (b->op) {
|
||||
|
Loading…
Reference in New Issue
Block a user