Skip to content

Commit

Permalink
Don't pass options.ignore to isGitIgnored (#223)
Browse files Browse the repository at this point in the history
  • Loading branch information
fisker committed Jan 20, 2022
1 parent 51c8f68 commit f816156
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -53,10 +53,10 @@ const normalizeArguments = fn => async (patterns, options) => fn(toPatternsArray
const normalizeArgumentsSync = fn => (patterns, options) => fn(toPatternsArray(patterns), normalizeOptions(options));

const getFilter = async options => createFilterFunction(
options.gitignore && await isGitIgnored({cwd: options.cwd, ignore: options.ignore}),
options.gitignore && await isGitIgnored({cwd: options.cwd}),
);
const getFilterSync = options => createFilterFunction(
options.gitignore && isGitIgnoredSync({cwd: options.cwd, ignore: options.ignore}),
options.gitignore && isGitIgnoredSync({cwd: options.cwd}),
);
const createFilterFunction = isIgnored => {
const seen = new Set();
Expand Down

0 comments on commit f816156

Please sign in to comment.