Skip to content

Commit

Permalink
Removing byRef Array creation in route()
Browse files Browse the repository at this point in the history
  • Loading branch information
avoidwork committed Jun 30, 2016
1 parent e335e5e commit 3d56a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions lib/woodland.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@ class Woodland {

route (req, res) {
let deferred = defer(),
byRef = [req, res],
method = head.test(req.method) ? "GET" : req.method,
middleware;

this.decorate(byRef[0], byRef[1]);
this.decorate(req, res);
middleware = array.iterator(this.routes(req.parsed.pathname, req.host, method));

function last (err) {
Expand Down
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": "1.0.8",
"version": "1.0.9",
"description": "Lightweight HTTP/HTTPS router with virtual hosts",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit 3d56a0e

Please sign in to comment.