mirror of
https://github.com/github/codeql-action.git
synced 2026-10-30 17:39:50 +00:00
Use more explicit checks on .length for readability
This commit is contained in:
2
lib/setup-codeql.js
generated
2
lib/setup-codeql.js
generated
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user