1
0
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:
Mathias Buus 2015-03-23 16:55:37 +01:00
parent dc50eb6005
commit b3db64d034

View File

@ -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) {