Permalink
Browse files

Add reset to the list of destructive commands

  • Loading branch information...
1 parent 26d81e8 commit 6cbc3230056291badb4054df28cce27ccc1d524a @mhart mhart committed with pksunkara Jun 13, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/nconf/provider.js
View
@@ -491,7 +491,7 @@ Provider.prototype.save = function (value, callback) {
Provider.prototype._execute = function (action, syncLength /* [arguments] */) {
var args = Array.prototype.slice.call(arguments, 2),
callback = typeof args[args.length - 1] === 'function' && args.pop(),
- destructive = ['set', 'clear', 'merge'].indexOf(action) !== -1,
+ destructive = ['set', 'clear', 'merge', 'reset'].indexOf(action) !== -1,
self = this,
response,
mergeObjs = [];

0 comments on commit 6cbc323

Please sign in to comment.