Skip to content

Commit

Permalink
Had this a conditional backwards in new next()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed May 16, 2018
1 parent 5d2ef2a commit 20a1ee0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/woodland.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,13 +289,13 @@ class Woodland {
if (obj.done === false) {
obj.value(err, req, res, next);
} else {
this.last(req, res, reject);
this.last(req, res, reject, err);
}
} else {
obj.value(req, res, next);
}
} else {
this.last(req, res, reject);
this.last(req, res, reject, err);
}
});

Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "woodland",
"version": "5.0.14",
"version": "5.0.15",
"description": "Lightweight HTTP/HTTPS/HTTP2 router with automatic `Allow` & `CORS` headers",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 20a1ee0

Please sign in to comment.