mirror of
https://github.com/github/codeql-action.git
synced 2025-12-31 03:30:14 +08:00
Use more explicit checks on .length for readability
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user