Skip to content

Commit

Permalink
decl vars
Browse files Browse the repository at this point in the history
  • Loading branch information
srinandan committed Jun 9, 2018
1 parent 7095ddb commit 4286bff
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/edgemicro
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,16 @@ const latest = 10;
console.log('current nodejs version is %s', version)
console.log('current edgemicro version is %s', edgemicroVersion);

for (ver in experimental) {
for (var ver in experimental) {
if (version.includes(experimental[ver])) {
console.log("You are using a version of NodeJS that is not supported");
return;
}
}

majorVersion = parseInt(version.split(".")[0].replace("v", ""));
var majorVersion = parseInt(version.split(".")[0].replace("v", ""));

if (majorVersion < lts_version || majorVersion > latest) {
if (majorVersion < ltsVersion || majorVersion > latest) {
console.log("You are using a version of NodeJS that is not supported");
return;
} else {
Expand Down

0 comments on commit 4286bff

Please sign in to comment.