From 1ac40b267338a9ff1e569878f5356ec5b4d4b03f Mon Sep 17 00:00:00 2001 From: probablycorey Date: Wed, 4 Jun 2014 10:55:10 -0700 Subject: [PATCH] =?UTF-8?q?Mimic=20Atom=E2=80=99s=20if/else=20style=20conv?= =?UTF-8?q?ention?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- script/bootstrap | 3 ++- script/utils/verify-requirements.js | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/script/bootstrap b/script/bootstrap index 52371c418..796ec3aaa 100755 --- a/script/bootstrap +++ b/script/bootstrap @@ -16,7 +16,8 @@ function executeCommands(commands, done, index) { command = command.command; } safeExec(command, options, executeCommands.bind(this, commands, done, index + 1)); - } else + } + else done(null); } diff --git a/script/utils/verify-requirements.js b/script/utils/verify-requirements.js index 261e56f36..e72f9a8db 100644 --- a/script/utils/verify-requirements.js +++ b/script/utils/verify-requirements.js @@ -22,7 +22,8 @@ function verifyNode() { function verifyPython27(cb) { if (process.platform !== 'win32') { cb(); - } else { + } + else { var pythonExecutable; if (!pythonPath) { var systemDrive = process.env.SystemDrive || 'C:\\'; @@ -30,10 +31,12 @@ function verifyPython27(cb) { if (fs.existsSync(pythonPath)) { pythonExecutable = path.join(pythonPath, 'python'); - } else { + } + else { pythonExecutable = 'python'; } - } else { + } + else { pythonExecutable = pythonPath; }