Skip to content

Commit

Permalink
Merge pull request #2143 from happy5214/pass-hed-issues-to-issue-cons…
Browse files Browse the repository at this point in the history
…tructor

Map issues through the Issue constructor
  • Loading branch information
nellh authored Oct 2, 2024
2 parents bc18324 + 3d5b919 commit 0a2530b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bids-validator/validators/hed.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@ import utils from '../utils'

const Issue = utils.issues.Issue

export default async function checkHedStrings(tsvs, jsonContents, jsonFiles) {
export default async function returnHedIssues(tsvs, jsonContents, jsonFiles) {
const issues = await checkHedStrings(tsvs, jsonContents, jsonFiles)
return issues.map((issue) => new Issue(issue))
}

async function checkHedStrings(tsvs, jsonContents, jsonFiles) {
const datasetDescription = jsonContents['/dataset_description.json']
const datasetDescriptionData = new hedValidator.bids.BidsJsonFile(
'/dataset_description.json',
Expand Down

0 comments on commit 0a2530b

Please sign in to comment.