Skip to content

Commit 6652573

Browse files
committed
Handle cases when repetition time is zero.
1 parent 54fc2b9 commit 6652573

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)