Avoid linter issue

This commit is contained in:
Johannes Zellner
2018-04-26 14:45:12 +02:00
parent 6574b22cf6
commit eb02c182e5
+2 -2
View File
@@ -546,8 +546,8 @@ function websocketAuth(requestedScopes, req, res, next) {
req.user = user;
req.authInfo = info;
var error = validateRequestedScopes(req, requestedScopes);
if (error) return next(new HttpError(401, error.message));
var e = validateRequestedScopes(req, requestedScopes);
if (e) return next(new HttpError(401, e.message));
next();
});