Skip to content

Commit 1e6f9e2

Browse files
committed
revert changes to gitTree ignore check in readDir.js
1 parent a8f082b commit 1e6f9e2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

bids-validator/utils/files/readDir.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,9 @@ const processFiles = (dir, ig, ...fileLists) =>
222222
file.relativePath = path.normalize(`${path.sep}${file.path}`)
223223
return file
224224
})
225-
.map(file => {
225+
.filter(file => {
226226
const ignore = ig.ignores(file.relativePath.slice(1))
227-
if (ignore) {
228-
file.ignore = true
229-
}
230-
return file
227+
return !ignore
231228
})
232229
.map(file => {
233230
file.relativePath = harmonizeRelativePath(file.relativePath)

0 commit comments

Comments
 (0)