Moved line
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2020-12-29 13:44:12 +01:00
parent 20862db854
commit edd25a347b
1 changed files with 1 additions and 1 deletions

View File

@ -145,10 +145,10 @@ module.exports = function(Self) {
rewriteDbError(replaceErrFunc) {
function replaceErr(err, replaceErrFunc) {
if (Array.isArray(err)) {
let errs = [];
const errors = err.filter(error => {
return error != undefined && error != null;
});
let errs = [];
for (let e of errors) {
if (!(e instanceof UserError))
errs.push(replaceErrFunc(e));