From 7e14247ea959a089e54b5a068811db21eaf5a54c Mon Sep 17 00:00:00 2001 From: Eneko Lakasta Date: Mon, 19 Feb 2018 17:06:59 +0100 Subject: [PATCH] remove cause of unreachable code/dead code. Not necessary because carto redis assures at least the default api key --- lib/cartodb/api/auth_api.js | 2 -- 1 file changed, 2 deletions(-) diff --git a/lib/cartodb/api/auth_api.js b/lib/cartodb/api/auth_api.js index 677ccc86..43f19d4e 100644 --- a/lib/cartodb/api/auth_api.js +++ b/lib/cartodb/api/auth_api.js @@ -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';