Skip to content

Commit 58f1af8

Browse files
authored
Merge pull request #396 from chrisfilo/enh/checkZeroRepetitionTime
Handle cases when repetition time is zero.
2 parents 54fc2b9 + 6652573 commit 58f1af8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

validators/nii.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ module.exports = function NIFTI (header, file, jsonContentsDict, bContentsDict,
159159
}));
160160
}
161161

162-
if (repetitionTime && mergedDictionary.RepetitionTime) {
162+
if (mergedDictionary.RepetitionTime && header) {
163163
if (repetitionUnit !== 's') {
164164
issues.push(new Issue({
165165
file: file,

0 commit comments

Comments
 (0)