Skip to content

Commit

Permalink
motion.tsv files have no headers, skip them for the checkheader call …
Browse files Browse the repository at this point in the history
…in validators/tsv.js
  • Loading branch information
rwblair committed Feb 8, 2024
1 parent 5942782 commit 92a7699
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion bids-validator/validators/tsv/tsv.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ const TSV = (file, contents, fileList, callback) => {
let emptyCells = false
let NACells = false

checkHeaders(headers, file, issues)
// motion tsvs don't have headers
if (!file.name.endsWith('_motion.tsv')) {
checkHeaders(headers, file, issues)
}

for (let i = 1; i < rows.length; i++) {
const values = rows[i]
Expand Down

0 comments on commit 92a7699

Please sign in to comment.