diff --git a/validators/nii.js b/validators/nii.js index 3d3349a2c..ed981f1e8 100644 --- a/validators/nii.js +++ b/validators/nii.js @@ -359,8 +359,8 @@ function generateMergedSidecarDict(potentialSidecars, jsonContents) { */ function checkSliceTimingArray(array, repetitionTime){ + var invalid_timesArray = []; for (var t = 0; t < array.length; t++){ - var invalid_timesArray = []; if (array[t] > repetitionTime){ invalid_timesArray.push(array[t]); }