remove blockcing if

This commit is contained in:
Jonathan Rainville 2018-10-03 16:37:23 -04:00 committed by Pascal Precht
parent 31476cf2b8
commit 328d9c7c07
No known key found for this signature in database
GPG Key ID: 0EE28D8D6FD85D7D
1 changed files with 0 additions and 3 deletions

View File

@ -164,9 +164,6 @@ class Server {
applyAPIFunction (cb, req, res) {
const authToken = (!res.send) ? req.protocol : req.headers.authorization;
if (!res.send) {
return cb(req, res);
}
this.events.request('authenticator:authorize', authToken, (err) => {
if (err) {
const send = res.send ? res.send.bind(res) : req.send.bind(req); // WS only has the first params