Skip to content

Commit

Permalink
Merge pull request #157 from isiahmeadows/patch-1
Browse files Browse the repository at this point in the history
Actually break the loop when checking the version
  • Loading branch information
tschaub authored Oct 5, 2016
2 parents 1385fb7 + 14566eb commit 83db4be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ var versions = {
var nodeVersion = process.versions.node;
var fsName;

Object.keys(versions).forEach(function(version) {
Object.keys(versions).some(function(version) {
if (semver.satisfies(nodeVersion, version)) {
fsName = versions[version];
return false;
return true;
}
});

Expand Down

0 comments on commit 83db4be

Please sign in to comment.