diff options
author | Rebecca Turner <me@re-becca.org> | 2016-08-12 01:48:17 +0300 |
---|---|---|
committer | Rebecca Turner <me@re-becca.org> | 2016-08-12 01:48:18 +0300 |
commit | 803e538efaae4b56a764029742adcf6761e8398b (patch) | |
tree | 44019e685de7601faad503545d1a53ffc0396e90 /node_modules/rimraf/rimraf.js | |
parent | bf78ce5ef5d2d6e95177193cca5362dd27bff968 (diff) |
rimraf@2.5.4
Clarify assertions: cb is required, options are not
Fixes: https://github.com/isaacs/rimraf/issues/111
Credit: @isaacs
Diffstat (limited to 'node_modules/rimraf/rimraf.js')
-rw-r--r-- | node_modules/rimraf/rimraf.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/rimraf/rimraf.js b/node_modules/rimraf/rimraf.js index db518a9d6..5d9a5768a 100644 --- a/node_modules/rimraf/rimraf.js +++ b/node_modules/rimraf/rimraf.js @@ -48,9 +48,9 @@ function rimraf (p, options, cb) { assert(p, 'rimraf: missing path') assert.equal(typeof p, 'string', 'rimraf: path should be a string') - assert(options, 'rimraf: missing options') - assert.equal(typeof options, 'object', 'rimraf: options should be object') assert.equal(typeof cb, 'function', 'rimraf: callback function required') + assert(options, 'rimraf: invalid options argument provided') + assert.equal(typeof options, 'object', 'rimraf: options should be object') defaults(options) |