Skip to content
Snippets Groups Projects
Unverified Commit acaa8eb4 authored by Rhys Arkins's avatar Rhys Arkins Committed by GitHub
Browse files

fix(azure): log repo not found message (#17268)

parent 3ad7f749
No related merge requests found
......@@ -135,6 +135,7 @@ export async function getRawFile(
}
if (!repoId) {
logger.debug('No repoId so cannot getRawFile');
return null;
}
......
......@@ -181,11 +181,13 @@ export function getRepoByName(
project = project.toLowerCase();
repo = repo.toLowerCase();
return (
repos?.find(
(r) =>
project === r?.project?.name?.toLowerCase() &&
repo === r?.name?.toLowerCase()
) ?? null
const foundRepo = repos?.find(
(r) =>
project === r?.project?.name?.toLowerCase() &&
repo === r?.name?.toLowerCase()
);
if (!foundRepo) {
logger.debug(`Repo not found: ${name}`);
}
return foundRepo ?? null;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment