Skip to content

Commit

Permalink
Merge pull request #3 from mitogh/small-simplification
Browse files Browse the repository at this point in the history
Remove extra line to make it a little bit small
  • Loading branch information
Kikobeats committed Jul 31, 2016
2 parents e744122 + 8e8a74a commit 7dbefbf
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ function ArrayList (limit) {
if (isNill(elem)) throw ArrayListError('ENOELEM', 'Provide a valid element')
if (list.isFull()) throw ArrayListError('ENOADD', "It's full.")

list[index] = elem
++index
list[index++] = elem
return list
}
})
Expand Down

0 comments on commit 7dbefbf

Please sign in to comment.