Removing redundant if.

Reviewed By: javache

Differential Revision: D4139894

fbshipit-source-id: 457f6b2b0b448af1dd75faa1c1b350e36d7a3133
This commit is contained in:
Ashok Menon authored and Facebook Github Bot committed 2016-11-08 09:13:43 -08:00
1 parent 81e4139edc
commit 3ee5e97bcd
1 file changed
+4 -9
+4 -9
View File
@@ -287,15 +287,10 @@ static NSThread *newJavaScriptThread(void)
registerNativeRequire(_context.context, self);
}
NSError *execError = executeApplicationScript(taggedScript, sourceURL,
_jscWrapper,
_performanceLogger,
_context.context.JSGlobalContextRef);
if (execError) {
return execError;
}
return NULL;
return executeApplicationScript(taggedScript, sourceURL,
_jscWrapper,
_performanceLogger,
_context.context.JSGlobalContextRef);
}
- (RCTJavaScriptContext *)context