Skip to content

Commit 878193c

Browse files
committed
fix: early return
Signed-off-by: Umberto Sgueglia <usgueglia@contractor.linuxfoundation.org>
1 parent b1b8d7f commit 878193c

1 file changed

Lines changed: 0 additions & 12 deletions

File tree

backend/src/api/public/v1/dev-stats/getAffiliations.ts

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,6 @@ export async function getAffiliations(req: Request, res: Response): Promise<void
3232
const qx = optionsQx(req)
3333

3434
const offset = (page - 1) * pageSize
35-
if (offset >= githubHandles.length) {
36-
ok(res, {
37-
total: githubHandles.length,
38-
totalFound: 0,
39-
page,
40-
pageSize,
41-
contributorsInPage: 0,
42-
contributors: [],
43-
notFound: githubHandles,
44-
})
45-
return
46-
}
4735

4836
// Step 1: find all verified members across all handles
4937
const allMemberRows = await findMembersByGithubHandles(qx, githubHandles)

0 commit comments

Comments
 (0)