refractor(): lodash contains to includes
This commit is contained in:
parent
c6dbf343fb
commit
c5ec7c33b5
@ -76,7 +76,7 @@ module.exports = function(currentVersion) {
|
|||||||
|
|
||||||
versions = [];
|
versions = [];
|
||||||
// new version, add it to the versions list
|
// new version, add it to the versions list
|
||||||
if (currentVersion != 'nightly' && !_.contains(versions, currentVersion)) {
|
if (currentVersion != 'nightly' && !_.includes(versions, currentVersion)) {
|
||||||
versions.unshift(currentVersion);
|
versions.unshift(currentVersion);
|
||||||
}
|
}
|
||||||
//First semver valid version is latest
|
//First semver valid version is latest
|
||||||
|
Loading…
Reference in New Issue
Block a user