Removing redundant `if`.

Reviewed By: javache

Differential Revision: D4139894

fbshipit-source-id: 457f6b2b0b448af1dd75faa1c1b350e36d7a3133
This commit is contained in:
Ashok Menon 2016-11-08 09:11:29 -08:00 committed by Facebook Github Bot
parent 81e4139edc
commit 3ee5e97bcd
1 changed files with 4 additions and 9 deletions

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