Skip to content

Commit

Permalink
Merge pull request #396 from chrisfilo/enh/checkZeroRepetitionTime
Browse files Browse the repository at this point in the history
Handle cases when repetition time is zero.
  • Loading branch information
chrisgorgo authored Feb 5, 2018
2 parents 54fc2b9 + 6652573 commit 58f1af8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validators/nii.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ module.exports = function NIFTI (header, file, jsonContentsDict, bContentsDict,
}));
}

if (repetitionTime && mergedDictionary.RepetitionTime) {
if (mergedDictionary.RepetitionTime && header) {
if (repetitionUnit !== 's') {
issues.push(new Issue({
file: file,
Expand Down

0 comments on commit 58f1af8

Please sign in to comment.