Skip to content

Commit

Permalink
Merge pull request #596 from olgn/fix-in-regression
Browse files Browse the repository at this point in the history
fix in -> of issues
  • Loading branch information
nellh authored Oct 4, 2018
2 parents a5ec5d3 + 7dc219a commit 5bf12b4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion validators/events.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ const checkStimuli = function(stimuli) {
const unusedStimuli = stimuliFromDirectory.filter(function(stimuli) {
return stimuliFromEvents.indexOf(stimuli.relativePath) < 0
})
for (let key in unusedStimuli) {
for (let key of unusedStimuli) {
const stimulus = unusedStimuli[key]
issues.push(
new Issue({
Expand Down
2 changes: 1 addition & 1 deletion validators/headerFields.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ var headerFields = function headerFields(headers) {
for (file in allIssues39Dict) {
var firstIssue = allIssues39Dict[file][0]
var evidence = ''
for (var issue in allIssues39Dict[file]) {
for (var issue of allIssues39Dict[file]) {
evidence = evidence + ' ' + allIssues39Dict[file][issue].reason
}
firstIssue.reason = evidence
Expand Down
4 changes: 2 additions & 2 deletions validators/nifti/duplicateFiles.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ const duplicateNiftis = files => {
const duplicates = Object.keys(niftiCounts).filter(function(a) {
return niftiCounts[a] > 1
})
for (let key in duplicates) {
for (let key of duplicates) {
const duplicateFiles = files.filter(function(a) {
return a.name.split('.')[0] === duplicates[key]
})
for (let file in duplicateFiles) {
for (let file of duplicateFiles) {
issues.push(
new Issue({
code: 74,
Expand Down

0 comments on commit 5bf12b4

Please sign in to comment.