File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ import type { GenericSchema } from '../../types/schema.ts'
22import type { BIDSFile , FileTree } from '../../types/filetree.ts'
33import type { BIDSContextDataset } from '../../schema/context.ts'
44
5- function * walkFileTree ( fileTree ? : FileTree , dsContext : BIDSContextDataset ) : Generator < BIDSFile > {
5+ function * walkFileTree ( fileTree : FileTree , dsContext : BIDSContextDataset ) : Generator < BIDSFile > {
66
77 if ( ! fileTree ) {
88 return
@@ -26,7 +26,7 @@ export async function unusedStimulus(
2626 dsContext : BIDSContextDataset ,
2727) {
2828 const stimDir = dsContext . tree . get ( 'stimuli' ) as FileTree
29- const unusedStimuli = [ ...walkFileTree ( stimDir ) ] . filter ( ( stimulus ) => ! stimulus . viewed )
29+ const unusedStimuli = [ ...walkFileTree ( stimDir , dsContext ) ] . filter ( ( stimulus ) => ! stimulus . viewed )
3030 if ( unusedStimuli . length ) {
3131 dsContext . issues . add ( { code : 'UNUSED_STIMULUS' , affects : unusedStimuli . map ( ( s ) => s . path ) } )
3232 }
You can’t perform that action at this time.
0 commit comments