refactor: fix lint warning on lib/response.js

Signed-off-by: BoHong Li <a60814billy@gmail.com>
This commit is contained in:
BoHong Li 2019-04-12 17:56:36 +08:00
parent b0dee3ee14
commit 0883595e95
No known key found for this signature in database
GPG Key ID: 9696D5590D58290F
1 changed files with 11 additions and 11 deletions

View File

@ -18,7 +18,7 @@ var utils = require('./utils')
// public
var response = {
errorForbidden: function (res) {
const {req} = res
const { req } = res
if (req.user) {
responseError(res, '403', 'Forbidden', 'oh no.')
} else {