From 311a1ffa7e5c6fb1ba3401413bb4b11a9a6484b9 Mon Sep 17 00:00:00 2001 From: Michael Jackson Date: Tue, 4 Sep 2018 07:39:45 -0700 Subject: [PATCH] Use 0 instead of a string for missing packages --- modules/utils/getNpmPackageInfo.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/utils/getNpmPackageInfo.js b/modules/utils/getNpmPackageInfo.js index 6827e49..b027084 100644 --- a/modules/utils/getNpmPackageInfo.js +++ b/modules/utils/getNpmPackageInfo.js @@ -1,7 +1,7 @@ const cache = require("./cache"); const fetchNpmPackageInfo = require("./fetchNpmPackageInfo"); -const notFound = "PackageNotFound"; +const notFound = 0; function getNpmPackageInfo(packageName) { return new Promise((resolve, reject) => {