removing unneeded check
This commit is contained in:
parent
479b8be639
commit
386d6bfea8
@ -164,11 +164,6 @@ function errorMessageWithContext(err) {
|
|||||||
|
|
||||||
function logErrors(errors, statusCode, res) {
|
function logErrors(errors, statusCode, res) {
|
||||||
let errorsCopy = errors.slice(0);
|
let errorsCopy = errors.slice(0);
|
||||||
|
|
||||||
if(!errorsCopy || !errorsCopy.length) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
const mainError = errorsCopy.shift();
|
const mainError = errorsCopy.shift();
|
||||||
|
|
||||||
let errorsLog = {
|
let errorsLog = {
|
||||||
|
Loading…
Reference in New Issue
Block a user