Update the validation when there are no options in the matchConfigs

This commit is contained in:
Josh Dales
2023-05-11 17:01:46 -04:00
parent 09645fd40d
commit 34a5bf6e83

View File

@@ -225,7 +225,7 @@ export function checkAny(
changedFiles: string[]
): boolean {
core.debug(` checking "any" patterns`);
if (!Object.keys(matchConfigs).length) {
if (!matchConfigs.length) {
core.debug(` no "any" patterns to check`);
return false;
}
@@ -260,7 +260,7 @@ export function checkAll(
changedFiles: string[]
): boolean {
core.debug(` checking "all" patterns`);
if (!Object.keys(matchConfigs).length) {
if (!matchConfigs.length) {
core.debug(` no "all" patterns to check`);
return false;
}