remove cause of unreachable code/dead code. Not necessary because carto redis assures at least the default api key

This commit is contained in:
Eneko Lakasta 2018-02-19 17:06:59 +01:00
parent 5823859b2a
commit 7e14247ea9

View File

@ -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';