Skip to content

Commit

Permalink
Add reset to the list of destructive commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mhart authored and pksunkara committed Jun 14, 2012
1 parent 26d81e8 commit 6cbc323
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/nconf/provider.js
Expand Up @@ -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 = [];
Expand Down

0 comments on commit 6cbc323

Please sign in to comment.