diff --git a/lib/index.js b/lib/index.js index 5ba09056..e3830d39 100644 --- a/lib/index.js +++ b/lib/index.js @@ -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; } });