Remove unreachable code

This commit is contained in:
Daniel García Aubert 2018-03-02 13:14:02 +01:00
parent 7ed717607a
commit 82f1e6753b

View File

@ -14,9 +14,7 @@ module.exports = function layergroupToken () {
if (layergroupToken.signer) {
res.locals.signer = layergroupToken.signer;
if (!res.locals.signer) {
res.locals.signer = user;
} else if (res.locals.signer !== user) {
if (res.locals.signer !== user) {
var err = new Error(`Cannot use map signature of user "${res.locals.signer}" on db of user "${user}"`);
err.type = 'auth';
err.http_status = 403;