Skip to content

Commit 4feb4ba

Browse files
authored
changed-files: simplify Array.from (#14505)
1 parent 55d6a22 commit 4feb4ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

packages/jest-changed-files/src/index.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ export const getChangedFilesForRoots = async (
3131

3232
const changedFilesOptions = {includePaths: roots, ...options};
3333

34-
const gitPromises = Array.from(repos.git).map(repo =>
34+
const gitPromises = Array.from(repos.git, repo =>
3535
git.findChangedFiles(repo, changedFilesOptions),
3636
);
3737

38-
const hgPromises = Array.from(repos.hg).map(repo =>
38+
const hgPromises = Array.from(repos.hg, repo =>
3939
hg.findChangedFiles(repo, changedFilesOptions),
4040
);
4141

42-
const slPromises = Array.from(repos.sl).map(repo =>
42+
const slPromises = Array.from(repos.sl, repo =>
4343
sl.findChangedFiles(repo, changedFilesOptions),
4444
);
4545

0 commit comments

Comments
 (0)