Skip to content

Commit

Permalink
Removing the call() within keymaster()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Dec 11, 2018
1 parent edad27a commit 07fcf8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ function keymaster (req, res) {

if (result !== void 0) {
if (typeof result === "function") {
result.call(req.server.tenso, req, res);
result(req, res);
} else {
res.send(result);
}
Expand Down

0 comments on commit 07fcf8b

Please sign in to comment.