Skip to content

Commit

Permalink
participants gets reassigned, declare with let not const
Browse files Browse the repository at this point in the history
  • Loading branch information
rwblair committed Aug 8, 2023
1 parent 6a88a2c commit 10acb67
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions bids-validator/validators/bids/fullTest.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ const fullTest = (fileList, options, annexed, dir, schema, callback) => {
}
const jsonFiles = []
const headers = []
const participants = null
let participants = null
const phenotypeParticipants = []

const tsvs = []
Expand Down Expand Up @@ -126,7 +126,6 @@ const fullTest = (fileList, options, annexed, dir, schema, callback) => {
})
.then(({ tsvIssues, participantsTsvContent }) => {
self.issues = self.issues.concat(tsvIssues)

// extract metadata on participants to metadata.age and
// return metadata on each subject from participants.tsv
summary.subjectMetadata = collectSubjectMetadata(participantsTsvContent)
Expand Down

1 comment on commit 10acb67

@rwblair
Copy link
Member Author

@rwblair rwblair commented on 10acb67 Aug 8, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Did not mean to commit this directly to master....

Please sign in to comment.