lib: fix style issues
This commit is contained in:
parent
24ccde947d
commit
a157937969
2 changed files with 5 additions and 5 deletions
|
@ -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.
|
||||
|
|
|
@ -48,8 +48,8 @@ const proto = module.exports = {
|
|||
originalUrl: this.originalUrl,
|
||||
req: '<original node req>',
|
||||
res: '<original node res>',
|
||||
socket: '<original node socket>',
|
||||
}
|
||||
socket: '<original node socket>'
|
||||
};
|
||||
},
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue