fix comment

This commit is contained in:
silverwind 2019-11-19 20:52:51 +01:00
parent 5bb374bf33
commit 001da61265
Signed by: silverwind
GPG Key ID: 2E62B41C93869443

@ -513,7 +513,7 @@ function findNewVersion(data, opts) {
return version;
}
// prevent downgrade to older version except with --downgrade
// prevent downgrade to older version except with --allow-downgrade
if (semver.lt(latestTag, oldVersion) && !latestIsPre) {
if (allowDowngrade === true || (Array.isArray(allowDowngrade) && allowDowngrade.includes(data.name))) {
return latestTag;