mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 16:47:49 +00:00
use else instead of continue
This commit is contained in:
committed by
John-David Dalton
parent
d25ab4f204
commit
0dc2e8994b
@@ -2934,10 +2934,10 @@
|
|||||||
removal = removals[index];
|
removal = removals[index];
|
||||||
if (removal === previous) {
|
if (removal === previous) {
|
||||||
result[index] = result[index - 1];
|
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;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user