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: '' + }; }, /**