Skip to content

Commit

Permalink
```
Browse files Browse the repository at this point in the history
standard: Use JavaScript Standard Style (https://standardjs.com)
standard: Run `standard --fix` to automatically fix some problems.
  /home/travis/build/jprichardson/node-fs-extra/lib/remove/rimraf.js:300:33: Extra semicolon.
  /home/travis/build/jprichardson/node-fs-extra/lib/remove/rimraf.js:302:42: Extra semicolon.
  /home/travis/build/jprichardson/node-fs-extra/lib/remove/rimraf.js:309:5: Block must not be padded by blank lines
```
  • Loading branch information
pgonzal committed Nov 2, 2018
1 parent 2275b7f commit ccd7d34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/remove/rimraf.js
Expand Up @@ -297,15 +297,12 @@ function rmkidsSync (p, options) {
// try really hard to delete stuff on windows, because it has a
// PROFOUNDLY annoying habit of not closing handles promptly when
// files are deleted, resulting in spurious ENOTEMPTY errors.
const startTime = Date.now();
const startTime = Date.now()
do {
console.log(Date.now() - startTime);

try {
const ret = options.rmdirSync(p, options)
return ret
} catch (er) { }

} while (Date.now() - startTime < 500) // give up after 500ms
} else {
const ret = options.rmdirSync(p, options)
Expand Down

0 comments on commit ccd7d34

Please sign in to comment.