Skip to content

Commit 891f483

Browse files
committed
Upgrade standard
1 parent df125be commit 891f483

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

lib/remove/rimraf.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,11 @@ function rmdirSync (p, options, originalEr) {
275275
try {
276276
options.rmdirSync(p)
277277
} catch (er) {
278-
if (er.code === 'ENOENT') {
279-
return
280-
} else if (er.code === 'ENOTDIR') {
278+
if (er.code === 'ENOTDIR') {
281279
throw originalEr
282280
} else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') {
283281
rmkidsSync(p, options)
284-
} else {
282+
} else if (er.code !== 'ENOENT') {
285283
throw er
286284
}
287285
}

lib/util/buffer.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* eslint-disable node/no-deprecated-api */
12
module.exports = function (size) {
23
if (typeof Buffer.allocUnsafe === 'function') {
34
try {

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
"read-dir-files": "^0.1.1",
4949
"rimraf": "^2.2.8",
5050
"secure-random": "^1.1.1",
51-
"standard": "^8.5.0"
51+
"standard": "^10.0.2"
5252
},
5353
"main": "./lib/index",
5454
"scripts": {

0 commit comments

Comments
 (0)