forked from mirrors/amnezia-wg-easy
eslint
This commit is contained in:
parent
c19cb72b6d
commit
e843593b17
4 changed files with 7 additions and 3 deletions
|
@ -19,7 +19,7 @@ module.exports = class Util {
|
|||
|
||||
static promisify(fn) {
|
||||
// eslint-disable-next-line func-names
|
||||
return function (req, res) {
|
||||
return function(req, res) {
|
||||
Promise.resolve().then(async () => fn(req, res))
|
||||
.then(result => {
|
||||
if (res.headersSent) return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue