Replace MethodCallResult with folly::Optional

Reviewed By: AaaChiuuu

Differential Revision: D4481987

fbshipit-source-id: 945dd671eb2482f3c6b626192aa2181c5bfd906f
This commit is contained in:
Pieter De Baets
2017-02-02 05:07:28 -08:00
committed by Facebook Github Bot
parent 7812b82b18
commit 4d2512aef9
5 changed files with 11 additions and 14 deletions

View File

@@ -163,7 +163,7 @@ MethodCallResult CxxNativeModule::callSerializableNativeHook(
" is asynchronous but invoked synchronously"));
}
return { method.syncFunc(std::move(args)), false };
return method.syncFunc(std::move(args));
}
}