Skip to content

Commit

Permalink
Upgrade standard
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanZim committed Apr 26, 2017
1 parent df125be commit 891f483
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 2 additions & 4 deletions lib/remove/rimraf.js
Expand Up @@ -275,13 +275,11 @@ function rmdirSync (p, options, originalEr) {
try {
options.rmdirSync(p)
} catch (er) {
if (er.code === 'ENOENT') {
return
} else if (er.code === 'ENOTDIR') {
if (er.code === 'ENOTDIR') {
throw originalEr
} else if (er.code === 'ENOTEMPTY' || er.code === 'EEXIST' || er.code === 'EPERM') {
rmkidsSync(p, options)
} else {
} else if (er.code !== 'ENOENT') {
throw er
}
}
Expand Down
1 change: 1 addition & 0 deletions lib/util/buffer.js
@@ -1,3 +1,4 @@
/* eslint-disable node/no-deprecated-api */
module.exports = function (size) {
if (typeof Buffer.allocUnsafe === 'function') {
try {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -48,7 +48,7 @@
"read-dir-files": "^0.1.1",
"rimraf": "^2.2.8",
"secure-random": "^1.1.1",
"standard": "^8.5.0"
"standard": "^10.0.2"
},
"main": "./lib/index",
"scripts": {
Expand Down

0 comments on commit 891f483

Please sign in to comment.