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

2
lib/setup-codeql.js generated
View File

@@ -160,7 +160,7 @@ function tryGetBundleVersionFromTagName(tagName, logger) {
}
function tryGetTagNameFromUrl(url, logger) {
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;
}