mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Mimic Atom’s if/else style convention
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user