lib: fix style issues

This commit is contained in:
Michaël Zasso 2015-10-12 22:36:03 +02:00
parent 24ccde947d
commit a157937969
2 changed files with 5 additions and 5 deletions

View file

@ -119,10 +119,10 @@ module.exports = class Application extends Emitter {
res.statusCode = 404; res.statusCode = 404;
const ctx = this.createContext(req, res); const ctx = this.createContext(req, res);
onFinished(res, ctx.onerror); onFinished(res, ctx.onerror);
fn.call(ctx).then(function () { fn.call(ctx).then(function() {
respond.call(ctx); respond.call(ctx);
}).catch(ctx.onerror); }).catch(ctx.onerror);
} };
} }
/** /**
@ -170,7 +170,7 @@ module.exports = class Application extends Emitter {
console.error(); console.error();
} }
} };
/** /**
* Response helper. * Response helper.

View file

@ -48,8 +48,8 @@ const proto = module.exports = {
originalUrl: this.originalUrl, originalUrl: this.originalUrl,
req: '<original node req>', req: '<original node req>',
res: '<original node res>', res: '<original node res>',
socket: '<original node socket>', socket: '<original node socket>'
} };
}, },
/** /**