Remove unreachable code
This commit is contained in:
parent
7ed717607a
commit
82f1e6753b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user