Skip to content

Commit

Permalink
FIX: Start file count at 0
Browse files Browse the repository at this point in the history
The -1 seems to have been copied from the legacy validator, which used
-1 as an indicator that the value was uninitialized and then later
replaced it with a `length()` call. Since we just increment it when
processing each file, it makes sense to start at 0.
  • Loading branch information
effigies committed May 2, 2024
1 parent 95ba32f commit 67347d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bids-validator/src/summary/summary.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ export class Summary {
schemaVersion: string
constructor() {
this.dataProcessed = false
this.totalFiles = -1
this.totalFiles = 0
this.size = 0
this.sessions = new Set()
this.subjects = new Set()
Expand Down

0 comments on commit 67347d3

Please sign in to comment.