removing unneeded check
This commit is contained in:
parent
479b8be639
commit
386d6bfea8
@ -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 = {
|
||||
|
Loading…
Reference in New Issue
Block a user