mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37: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];
|
||||
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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user