removing unneeded check

This commit is contained in:
Simon Martín 2017-11-28 18:19:28 +01:00
parent 479b8be639
commit 386d6bfea8

View File

@ -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 = {