mirror of
https://github.com/atom/atom.git
synced 2026-04-28 03:01:47 -04:00
Fix first guard clause
This commit is contained in:
@@ -17,7 +17,7 @@ module.exports = function () {
|
||||
function verifyNode () {
|
||||
const fullVersion = process.versions.node
|
||||
const majorVersion = fullVersion.split('.')[0]
|
||||
if (majorVersion >= 4) {
|
||||
if (majorVersion >= 4 && majorVersion < 7) {
|
||||
console.log(`Node:\tv${fullVersion}`)
|
||||
} else if (majorVersion >= 7) {
|
||||
throw new Error(`Atom does not build properly on node v7+. node v${fullVersion} is installed.`)
|
||||
|
||||
Reference in New Issue
Block a user