remove cause of unreachable code/dead code. Not necessary because carto redis assures at least the default api key
This commit is contained in:
parent
5823859b2a
commit
7e14247ea9
@ -86,8 +86,6 @@ AuthApi.prototype.authorizedByAPIKey = function(user, res, callback) {
|
||||
}
|
||||
|
||||
if ( !isValidApiKey(apikey)) {
|
||||
return callback(null, true); // AUTH_FALLBACK :S If api key not found, use default_public
|
||||
|
||||
const error = new Error('Unauthorized');
|
||||
error.type = 'auth';
|
||||
error.subtype = 'api-key-not-found';
|
||||
|
Loading…
Reference in New Issue
Block a user