Skip to content

Commit e98c222

Browse files
ttshiversSimenB
andauthored
ci(test): use some instead of filter with length
Co-authored-by: Simen Bekkhus <[email protected]>
1 parent 23ea55a commit e98c222

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

genMatrix.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const testFiles = [
1010
const nodeDirRegex = /^\d+$/;
1111

1212
const areTestFilesChanged = (changedFiles) => changedFiles
13-
.filter((file) => testFiles.includes(file)).length;
13+
.some((file) => testFiles.includes(file));
1414

1515
// Returns a list of the child directories in the given path
1616
const getChildDirectories = (parent) => fs.readdirSync(parent, { withFileTypes: true })

0 commit comments

Comments
 (0)