rimraf 3.0.1 → 3.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/rimraf.js +0 -8
package/package.json
CHANGED
package/rimraf.js
CHANGED
|
@@ -164,8 +164,6 @@ const fixWinEPERM = (p, options, er, cb) => {
|
|
|
164
164
|
assert(p)
|
|
165
165
|
assert(options)
|
|
166
166
|
assert(typeof cb === 'function')
|
|
167
|
-
if (er)
|
|
168
|
-
assert(er instanceof Error)
|
|
169
167
|
|
|
170
168
|
options.chmod(p, 0o666, er2 => {
|
|
171
169
|
if (er2)
|
|
@@ -185,8 +183,6 @@ const fixWinEPERM = (p, options, er, cb) => {
|
|
|
185
183
|
const fixWinEPERMSync = (p, options, er) => {
|
|
186
184
|
assert(p)
|
|
187
185
|
assert(options)
|
|
188
|
-
if (er)
|
|
189
|
-
assert(er instanceof Error)
|
|
190
186
|
|
|
191
187
|
try {
|
|
192
188
|
options.chmodSync(p, 0o666)
|
|
@@ -216,8 +212,6 @@ const fixWinEPERMSync = (p, options, er) => {
|
|
|
216
212
|
const rmdir = (p, options, originalEr, cb) => {
|
|
217
213
|
assert(p)
|
|
218
214
|
assert(options)
|
|
219
|
-
if (originalEr)
|
|
220
|
-
assert(originalEr instanceof Error)
|
|
221
215
|
assert(typeof cb === 'function')
|
|
222
216
|
|
|
223
217
|
// try to rmdir first, and only readdir on ENOTEMPTY or EEXIST (SunOS)
|
|
@@ -323,8 +317,6 @@ const rimrafSync = (p, options) => {
|
|
|
323
317
|
const rmdirSync = (p, options, originalEr) => {
|
|
324
318
|
assert(p)
|
|
325
319
|
assert(options)
|
|
326
|
-
if (originalEr)
|
|
327
|
-
assert(originalEr instanceof Error)
|
|
328
320
|
|
|
329
321
|
try {
|
|
330
322
|
options.rmdirSync(p)
|