We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f9bda4 commit 188fa49Copy full SHA for 188fa49
lib/filter.js
@@ -12,7 +12,7 @@ function isAlreadyInstalled(info) {
12
13
function isUnstable(info) {
14
// Check for hyphen in version string as this is a prerelease version according to SemVer
15
- return info.updateTo && info.updateTo.indexOf("-") !== -1;
+ return Boolean(info.updateTo && info.updateTo.indexOf("-") !== -1);
16
}
17
18
function isExcluded(info, exclude) {
@@ -22,7 +22,7 @@ function isExcluded(info, exclude) {
22
23
24
function isCurrentGreaterThanUpdateTo(info) {
25
- return info.current && info.updateTo !== "git" && semver.gt(info.current, info.updateTo);
+ return Boolean(info.current && info.updateTo !== "git" && semver.gt(info.current, info.updateTo));
26
27
28
function filter(config) {
0 commit comments