Skip to content

Commit

Permalink
Refactor to simplify completion handling
Browse files Browse the repository at this point in the history
Closes GH-7.
  • Loading branch information
wooorm committed Aug 1, 2016
1 parent 82f21cc commit 292cc0d
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,13 +383,9 @@ function unified() {
}, function (err) {
complete = true;

if (!done) {
bail(err);
}

try {
if (done) {
done(err, file);
} catch (err) {
} else {
bail(err);
}
});
Expand Down

0 comments on commit 292cc0d

Please sign in to comment.