From f816156b2b57b27b790f1e3237bb858ce3dc139d Mon Sep 17 00:00:00 2001 From: fisker Cheung Date: Thu, 20 Jan 2022 16:55:05 +0800 Subject: [PATCH] Don't pass `options.ignore` to `isGitIgnored` (#223) --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 26630a2..ebe345d 100644 --- a/index.js +++ b/index.js @@ -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();