diff --git a/lib/package-managers/gitTags.js b/lib/package-managers/gitTags.js index 134e0b53..a5b226c1 100644 --- a/lib/package-managers/gitTags.js +++ b/lib/package-managers/gitTags.js @@ -19,12 +19,7 @@ const greatest = async (name, version, options) => { // catch a variety of errors that occur on invalid or private repos catch (e) { print(options, `Invalid or Private repo ${name}: ${version}`, 'verbose') - if (/Repository not found|Could not read from remote repository.|Permission denied|not a git command|unable to find remote helper/i.test(e.stderr)) { - return null - } - else { - throw e - } + return null } // eslint-disable-next-line fp/no-mutating-methods