Skip to content
Snippets Groups Projects
Commit 6d82d7b4 authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix: check before lower case

parent a16754c5
Branches
Tags
Loading
......@@ -147,7 +147,7 @@ async function getDependencyInner(name, retries = 5) {
retries: 5,
headers,
})).body;
if (res.name.toLowerCase() !== name.toLowerCase()) {
if (!(res.name && res.name.toLowerCase() === name.toLowerCase())) {
logger.warn(
{ lookupName: name, returnedName: res.name, regUrl },
'Returned name does not match with requested name'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment