Return inside try-catch
gitea/salix/pipeline/head This commit looks good
Details
gitea/salix/pipeline/head This commit looks good
Details
This commit is contained in:
parent
da92f771ac
commit
fce26342a9
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue