Permalink
Browse files

list: use Array.isArray()

  • Loading branch information...
1 parent 19ea50e commit ae4d8d1e7940f8059708c8d6327ffbaa1cd163a0 @TooTallNate TooTallNate committed Jun 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/list.js
View
@@ -23,7 +23,7 @@ function list (gyp, args, callback) {
if (err && err.code != 'ENOENT') {
return callback(err)
}
- if (versions) {
+ if (Array.isArray(versions)) {
versions = versions.filter(function (v) { return v != 'current' })
} else {
versions = []

0 comments on commit ae4d8d1

Please sign in to comment.