From a15793796932010a3fc19654ed6dbb6f3d2db720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Mon, 12 Oct 2015 22:36:03 +0200 Subject: [PATCH] lib: fix style issues --- lib/application.js | 6 +++--- lib/context.js | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/application.js b/lib/application.js index a51a2a1..d9fd467 100644 --- a/lib/application.js +++ b/lib/application.js @@ -119,10 +119,10 @@ module.exports = class Application extends Emitter { res.statusCode = 404; const ctx = this.createContext(req, res); onFinished(res, ctx.onerror); - fn.call(ctx).then(function () { + fn.call(ctx).then(function() { respond.call(ctx); }).catch(ctx.onerror); - } + }; } /** @@ -170,7 +170,7 @@ module.exports = class Application extends Emitter { console.error(); } -} +}; /** * Response helper. diff --git a/lib/context.js b/lib/context.js index 8cfaf15..2f4cad4 100644 --- a/lib/context.js +++ b/lib/context.js @@ -48,8 +48,8 @@ const proto = module.exports = { originalUrl: this.originalUrl, req: '', res: '', - socket: '', - } + socket: '' + }; }, /**