Skip to content
Myr

some jshint cleanup

Before adoption: this commit came in with the history the project adopted, so no landing records it.

some more errors but whatever

authored by Jonathan Ong · committed by Jonathan Ong · parent 3112f92 · Browse files · 5 files+9 added−14 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

5 files+9 added−14 removed

  • other:+9 added−14 removed

5 files+9 added−14 removed

modified:lib/router/index.js+2 added-5 removed
20 unmodified lines
21 options = options || {};2223 function router(req, res, next) {24 router.handle(req, res, next);25 };25 }2627 // mixin Router class functions28 router.__proto__ = proto;29
168 unmodified lines
198199 trim_prefix();200 });201202 return next(err);203202 function trim_prefix() {203 var c = path[layer.path.length];204 if (c && '/' != c && '.' != c) return next(err);205
35 unmodified lines
241 * @api private242 */243244proto.process_params = function(route, req, res, done) {247 var self = this;245 var params = this.params;246247 // captured parameters from the route, keys and values248 var keys = route.keys || [];
35 unmodified lines
284 done(err);285 }286287 done();291 };288 }289290 // single param callbacks291 function paramCallback(err) {292 var fn = paramCallbacks[paramIndex++];
105 unmodified lines
modified:lib/router/layer.js+4 added-2 removed
modified:lib/express.js+2 added-5 removed
modified:lib/request.js+1 added-1 removed
147 unmodified lines
148 * @api public149 */150151req.acceptsLanguage = // backwards compatibility152req.acceptsLanguages = function(lang){152req.acceptsLanguages = function(){153 var accept = accepts(this);154 return accept.languages.apply(accept, arguments);155};156
277 unmodified lines
modified:lib/response.js-1 removed
11 unmodified lines
12 , etag = require('./utils').etag13 , statusCodes = http.STATUS_CODES14 , cookie = require('cookie')15 , send = require('send')16 , resolve = require('url').resolve16 , basename = path.basename17 , extname = path.extname18 , mime = send.mime;19var ServerResponse = http.ServerResponse;
783 unmodified lines