Skip to content

Commit

Permalink
Fixing a conditional statement within the new next()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed May 16, 2018
1 parent 9454050 commit 5d2ef2a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/woodland.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ class Woodland {

if (obj.done === false) {
if (err !== void 0) {
while (obj.value.length < 4 && obj.done === false) {
while (obj.done === false && obj.value.length < 4) {
obj = middleware.next();
}

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.13",
"version": "5.0.14",
"description": "Lightweight HTTP/HTTPS/HTTP2 router with automatic `Allow` & `CORS` headers",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 5d2ef2a

Please sign in to comment.