refractor(): lodash contains to includes

This commit is contained in:
Ibby 2017-01-10 16:34:56 -05:00
parent c6dbf343fb
commit c5ec7c33b5

View File

@ -76,7 +76,7 @@ module.exports = function(currentVersion) {
versions = [];
// new version, add it to the versions list
if (currentVersion != 'nightly' && !_.contains(versions, currentVersion)) {
if (currentVersion != 'nightly' && !_.includes(versions, currentVersion)) {
versions.unshift(currentVersion);
}
//First semver valid version is latest