Skip to content

Commit

Permalink
list: use Array.isArray()
Browse files Browse the repository at this point in the history
  • Loading branch information
TooTallNate committed Jun 15, 2012
1 parent 19ea50e commit ae4d8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/list.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down

0 comments on commit ae4d8d1

Please sign in to comment.