mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
Remove redundant items.length check.
This commit is contained in:
@@ -302,7 +302,7 @@ class Pane extends Model
|
||||
addItemsToStack: (itemStackIndices) ->
|
||||
if @items.length > 0
|
||||
if itemStackIndices.length is 0 or itemStackIndices.length isnt @items.length or itemStackIndices.indexOf(-1) >= 0
|
||||
itemStackIndices = (i for i in [0..@items.length-1]) unless @items.length is 0
|
||||
itemStackIndices = (i for i in [0..@items.length-1])
|
||||
for itemIndex in itemStackIndices
|
||||
@addItemToStack(@items[itemIndex])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user