repl: remove unnecessary check for globals
authorYazhong Liu <yorkiefixer@gmail.com>
Sun, 17 May 2015 17:25:19 +0000 (01:25 +0800)
committercjihrig <cjihrig@gmail.com>
Sun, 17 May 2015 18:03:37 +0000 (14:03 -0400)
commit5f33521be529cc7046d517e54fa93a5a220c40c7
treeee8e2b207eeb34499ba479193ec380f7c08c80fc
parentfbaef40e63ba1091156b8897f0ecd6aaf27bf4e2
repl: remove unnecessary check for globals

There is no need to check for globals and also check if it is
an array.

PR-URL: https://github.com/nodejs/io.js/pull/1722
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
lib/repl.js