Skip to content
This repository was archived by the owner on Oct 9, 2025. It is now read-only.

Commit f7fba8e

Browse files
committed
refactor: remove void 0 in catch statements
1 parent ffe5f01 commit f7fba8e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/utils/ConnectedList.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export const deleteConnections = async (where: Prisma.connectedListWhereInput) =
2323
await db.connectedList.deleteMany({ where });
2424

2525
syncConnectionCache()
26-
.then(void 0)
27-
.catch(void 0);
26+
.then(() => null)
27+
.catch(() => null);
2828
};
2929

3030
export const connectChannel = async (data: Prisma.connectedListCreateInput) => {
@@ -51,8 +51,8 @@ export const modifyConnections = async (
5151
const connections = await db.connectedList.updateMany({ where, data });
5252

5353
syncConnectionCache()
54-
.then(void 0)
55-
.catch(void 0);
54+
.then(() => null)
55+
.catch(() => null);
5656

5757
return connections;
5858
};

0 commit comments

Comments
 (0)