mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
script: Refactor variable use in verifyPython()
This commit is contained in:
@@ -69,6 +69,8 @@ function verifyPython() {
|
||||
|
||||
function verifyBinary(binary, prependFlag) {
|
||||
if (binary && !usablePythonWasFound) {
|
||||
// clear re-used "result" variables now that we're checking another python binary.
|
||||
stdout = '';
|
||||
fullVersion = '';
|
||||
|
||||
let allFlags = [
|
||||
@@ -108,8 +110,6 @@ function verifyPython() {
|
||||
(majorVersion === 3 && minorVersion >= 5)
|
||||
) {
|
||||
usablePythonWasFound = true;
|
||||
} else {
|
||||
stdout = '';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user