Skip to content

Commit

Permalink
chore(package): Fix tests for mkdirp@1.0.4.
Browse files Browse the repository at this point in the history
  • Loading branch information
randytarampi committed Apr 25, 2020
1 parent b5e95f5 commit 42ce372
Show file tree
Hide file tree
Showing 4 changed files with 301 additions and 200 deletions.
2 changes: 0 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,9 @@ dist: bionic
matrix:
fast_finish: true
allow_failures:
- node_js: 6
- node_js: node
- node_js: lts/*
node_js:
- 6
- 8
- 10
- 12
Expand Down
9 changes: 3 additions & 6 deletions lib/pseudoimage.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,12 +195,9 @@ const mkdirpDestinationDirectoryIfRequired = destinationDirectory => new Promise
fs.lstat(destinationDirectory, error => {
if (error) {
if (error.code === "ENOENT") {
return mkdirp(destinationDirectory, error => {
if (error) {
return reject(error);
}
return resolve();
});
return mkdirp(destinationDirectory)
.then(resolve)
.catch(reject);
} else {
return reject(error);
}
Expand Down
Loading

0 comments on commit 42ce372

Please sign in to comment.