Skip to content

Commit d29aec6

Browse files
committed
fix: Flipped boolean for checking err.code
1 parent dbf83e5 commit d29aec6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/files/deno.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ export async function readFileTree(rootPath: string): Promise<FileTree> {
159159
)
160160
ignore.add(await readBidsIgnore(ignoreFile))
161161
} catch (err) {
162-
if (err && typeof err === 'object' && !('code' in err && err.code !== 'ENOENT')) {
162+
if (err && typeof err === 'object' && !('code' in err && err.code === 'ENOENT')) {
163163
logger.error(`Failed to read '.bidsignore' file with the following error:\n${err}`)
164164
}
165165
}

0 commit comments

Comments
 (0)