Remove unneeded branch of _.slice.

This commit is contained in:
John-David Dalton
2014-07-24 00:50:04 -07:00
parent 663ebd25ea
commit e475a3b64c

View File

@@ -3874,8 +3874,6 @@
start = start == null ? 0 : (+start || 0);
if (start < 0) {
start = -start > length ? 0 : (length + start);
} else if (start > length) {
start = length;
}
end = (typeof end == 'undefined' || end > length) ? length : (+end || 0);
if (end < 0) {