Merged adjustanct 'if' statements when allowed.

Also - removed the unused variables.
This commit is contained in:
Ashesh Vashi committed 2020-04-14 18:43:04 +05:30
1 parent 6c5883bce0
commit a930c6617b
2 files changed
+21 -22

No files matched your search

+6 -7
View File
@@ -117,13 +117,12 @@ else:
app.debug = False
# respond to JS
if config.DEBUG:
if javascriptBundler.report() == JsState.NONE:
app.logger.error("Unable to generate javascript")
app.logger.error(
"To run the app ensure that yarn install command runs successfully"
)
raise Exception("No generated javascript, aborting")
if config.DEBUG and javascriptBundler.report() == JsState.NONE:
app.logger.error(
"Unable to generate javascript.\n"
"To run the app ensure that yarn install command runs successfully"
)
raise Exception("No generated javascript, aborting")
# Start the web server. The port number should have already been set by the
# runtime if we're running in desktop mode, otherwise we'll just use the