Skip to content

Commit 9dc660a

Browse files
nellhsappelhoff
authored andcommitted
Variable declaration fix for readDir.preprocessNode
1 parent 0d6b837 commit 9dc660a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

bids-validator/utils/files/readDir.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,8 @@ function harmonizeRelativePath(path) {
9595
* 3. Harmonizes the 'relativePath' field
9696
*/
9797
function preprocessNode(dir, ig, options) {
98-
var str = dir.substr(dir.lastIndexOf(path.sep) + 1) + '$'
99-
var rootpath = dir.replace(new RegExp(str), '')
98+
const str = dir.substr(dir.lastIndexOf(path.sep) + 1) + '$'
99+
const rootpath = dir.replace(new RegExp(str), '')
100100
return getFiles(dir, rootpath, ig, options)
101101
}
102102

0 commit comments

Comments
 (0)