From 6cbc3230056291badb4054df28cce27ccc1d524a Mon Sep 17 00:00:00 2001 From: Michael Hart Date: Wed, 13 Jun 2012 17:41:28 +1000 Subject: [PATCH] Add reset to the list of destructive commands --- lib/nconf/provider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/nconf/provider.js b/lib/nconf/provider.js index 5bb9823..536781f 100644 --- a/lib/nconf/provider.js +++ b/lib/nconf/provider.js @@ -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 = [];