mirror of
https://github.com/Viren070/AIOStreams.git
synced 2025-12-01 23:14:04 +01:00
refactor: remove unecessary catches in commit and rollback methods
This commit is contained in:
@@ -173,8 +173,6 @@ export class DB {
|
||||
commit: async () => {
|
||||
try {
|
||||
await client.query('COMMIT');
|
||||
} catch (error) {
|
||||
throw error;
|
||||
} finally {
|
||||
finalise();
|
||||
}
|
||||
@@ -182,8 +180,6 @@ export class DB {
|
||||
rollback: async () => {
|
||||
try {
|
||||
await client.query('ROLLBACK');
|
||||
} catch (error) {
|
||||
throw error;
|
||||
} finally {
|
||||
finalise();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user