From 78042678958ea73c4c724a9557ce1e066026ea4e Mon Sep 17 00:00:00 2001 From: Chris Gorgolewski Date: Wed, 20 Dec 2017 12:39:45 -0800 Subject: [PATCH] Fix slice timing check --- validators/nii.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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]); }