From fce26342a9aa5ed26f7066884af1d615fcf7d9db Mon Sep 17 00:00:00 2001 From: joan Date: Thu, 8 Sep 2022 11:42:16 +0200 Subject: [PATCH] Return inside try-catch --- back/methods/edi/updateData.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/back/methods/edi/updateData.js b/back/methods/edi/updateData.js index a7375676a8..86a9e1f317 100644 --- a/back/methods/edi/updateData.js +++ b/back/methods/edi/updateData.js @@ -101,12 +101,12 @@ module.exports = Self => { if (error.code !== 'ENOENT') throw e; } + + return true; } catch (error) { await tx.rollback(); throw error; } - - return true; }; let ftpClient;