From 386d6bfea846f8be54260c6b9681e00b2c48e89a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Simon=20Mart=C3=ADn?= Date: Tue, 28 Nov 2017 18:19:28 +0100 Subject: [PATCH] removing unneeded check --- lib/cartodb/middleware/error-middleware.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/cartodb/middleware/error-middleware.js b/lib/cartodb/middleware/error-middleware.js index ce44daa3..fd9892ac 100644 --- a/lib/cartodb/middleware/error-middleware.js +++ b/lib/cartodb/middleware/error-middleware.js @@ -164,11 +164,6 @@ function errorMessageWithContext(err) { function logErrors(errors, statusCode, res) { let errorsCopy = errors.slice(0); - - if(!errorsCopy || !errorsCopy.length) { - return; - } - const mainError = errorsCopy.shift(); let errorsLog = {