use else instead of continue

This commit is contained in:
Dan Allison
2014-03-01 18:30:03 -08:00
committed by John-David Dalton
parent d25ab4f204
commit 0dc2e8994b

View File

@@ -2934,10 +2934,10 @@
removal = removals[index];
if (removal === previous) {
result[index] = result[index - 1];
continue;
} else {
previous = removal;
result[index] = splice.call(array, removal - ++adjust, 1)[0];
}
previous = removal;
result[index] = splice.call(array, removal - ++adjust, 1)[0];
}
return result;
}