Skip to content

Commit 7663b11

Browse files
committed
chore: Simplify by returning directly (#2627)
1 parent fe6bae7 commit 7663b11

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/lib/services/contest_task_pairs.ts

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,16 +23,14 @@ export async function getContestTaskPair(
2323
contestId: string,
2424
taskId: string,
2525
): Promise<ContestTaskPair | null> {
26-
const contestTaskPair = await db.contestTaskPair.findUnique({
26+
return await db.contestTaskPair.findUnique({
2727
where: {
2828
contestId_taskId: {
2929
contestId,
3030
taskId,
3131
},
3232
},
3333
});
34-
35-
return contestTaskPair;
3634
}
3735

3836
/**

0 commit comments

Comments
 (0)