From 8e8a74a25b3aef62ee269663ab97d701ca5ed73b Mon Sep 17 00:00:00 2001 From: mitogh Date: Sat, 30 Jul 2016 19:32:08 -0700 Subject: [PATCH] Remove extra line to make it a little bit small --- index.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/index.js b/index.js index 6d5b04f..59b01c9 100644 --- a/index.js +++ b/index.js @@ -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 } })