Return inside try-catch
gitea/salix/pipeline/head This commit looks good Details

This commit is contained in:
Joan Sanchez 2022-09-08 11:42:16 +02:00
parent da92f771ac
commit fce26342a9
1 changed files with 2 additions and 2 deletions

View File

@ -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;