Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Don't save prototype junk from conf object

  • Loading branch information...
commit 399a78b167d9109bc4d0847a16d26fa49278fae3 1 parent 7826a74
@agnoster authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  lib/cli/config.js
View
3  lib/cli/config.js
@@ -263,7 +263,8 @@ Config.prototype.save = function(data, global, cb) {
}
for (var key in data) {
- ++left
+ if (!data.hasOwnProperty(key)) continue
+ ;++left
this.set(key, data[key], global, _cb)
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.