From 65428ee9e3fe99a72afe602919c8f98874d02752 Mon Sep 17 00:00:00 2001 From: petea Date: Mon, 27 Oct 2014 21:52:23 +0200 Subject: [PATCH] removed redundant variables --- lib/router.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/router.js b/lib/router.js index 8284397..268b5bf 100644 --- a/lib/router.js +++ b/lib/router.js @@ -285,15 +285,12 @@ Router.prototype.use = function () { debug('use called %s', args); var name = typeof args[0] === 'string' || util.isRegExp(args[0]) ? args.shift() : '*'; if (!args.length) throw new Error('we have the name, but need a handler'); - var self = this; var fns = this.fns(name); - var i, arg, type; - for (i=0; i