Skip to content

Commit

Permalink
Merge pull request #1417 from DustinCampbell/fix-debugger-events
Browse files Browse the repository at this point in the history
Be sure to exit from resolved promise deleteIfExists(...) helper
  • Loading branch information
DustinCampbell authored Apr 21, 2017
2 parents e7c4caa + 0946223 commit 8e9f5d6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export function deleteIfExists(filePath: string): Promise<void> {
.then((exists: boolean) => {
return new Promise<void>((resolve, reject) => {
if (!exists) {
resolve();
return resolve();
}

fs.unlink(filePath, err => {
Expand Down

0 comments on commit 8e9f5d6

Please sign in to comment.