Use more explicit checks on .length for readability

This commit is contained in:
Henry Mercer
2025-08-05 17:55:50 +01:00
parent e682065360
commit ea05bf27b6
15 changed files with 15 additions and 15 deletions

View File

@@ -155,7 +155,7 @@ export function tryGetTagNameFromUrl(
logger: Logger,
): string | undefined {
const matches = [...url.matchAll(/\/(codeql-bundle-[^/]*)\//g)];
if (!matches.length) {
if (matches.length === 0) {
logger.debug(`Could not determine tag name for URL ${url}.`);
return undefined;
}