Skip to content

Commit e2f1020

Browse files
committed
extracted local variable for better readiblity
1 parent f537cc7 commit e2f1020

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test-app/runtime/src/main/java/com/tns/Runtime.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,8 +490,10 @@ private void init(Logger logger, String appName, String nativeLibDir, File rootD
490490
throw new RuntimeException("Fail to initialize Require class", ex);
491491
}
492492

493-
initNativeScript(getRuntimeId(), Module.getApplicationFilesPath(), nativeLibDir, logger.isEnabled(), isDebuggable, appName, appConfig.getAsArray(), callingJsDir, appConfig.getMaxLogcatObjectSize(),
494-
appConfig.getForceLog() || "timeline".equalsIgnoreCase(appConfig.getProfilingMode()));
493+
boolean forceConsoleLog = appConfig.getForceLog() || "timeline".equalsIgnoreCase(appConfig.getProfilingMode());
494+
495+
initNativeScript(getRuntimeId(), Module.getApplicationFilesPath(), nativeLibDir, logger.isEnabled(), isDebuggable, appName, appConfig.getAsArray(),
496+
callingJsDir, appConfig.getMaxLogcatObjectSize(), forceConsoleLog);
495497

496498
//clearStartupData(getRuntimeId()); // It's safe to delete the data after the V8 debugger is initialized
497499

0 commit comments

Comments
 (0)