Skip to content

Commit 5ecd321

Browse files
committed
Clarify assertions: cb is required, options are not
Fix #111
1 parent eb57e2d commit 5ecd321

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

rimraf.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ function rimraf (p, options, cb) {
4848

4949
assert(p, 'rimraf: missing path')
5050
assert.equal(typeof p, 'string', 'rimraf: path should be a string')
51-
assert(options, 'rimraf: missing options')
52-
assert.equal(typeof options, 'object', 'rimraf: options should be object')
5351
assert.equal(typeof cb, 'function', 'rimraf: callback function required')
52+
assert(options, 'rimraf: invalid options argument provided')
53+
assert.equal(typeof options, 'object', 'rimraf: options should be object')
5454

5555
defaults(options)
5656

0 commit comments

Comments
 (0)