Skip to content

Commit 2294618

Browse files
kevvasindresorhus
authored andcommitted
Deduplicate identical file patterns (#102)
Fixes #57
1 parent ba9c267 commit 2294618

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const assertPatternsInput = patterns => {
1616
};
1717

1818
const generateGlobTasks = (patterns, taskOptions) => {
19-
patterns = [].concat(patterns);
19+
patterns = arrayUnion([].concat(patterns));
2020
assertPatternsInput(patterns);
2121

2222
const globTasks = [];

0 commit comments

Comments
 (0)