Skip to content

Commit 356894b

Browse files
committed
return to make lint happy
1 parent 2d78ab4 commit 356894b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/github-api/src/rest/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ const handlers =
7777
org
7878
);
7979
if (!install) return response.status(404).send("Not Found");
80-
response.status(200).json(install);
80+
return response.status(200).json(install);
8181
// note that we can't use the return here because the schema has
8282
// a nullable field that openapi-backend chokes on
8383
// see https://github.com/typicode/openapi-backend/issues/747
@@ -92,7 +92,7 @@ const handlers =
9292
repo
9393
);
9494
if (!install) return response.status(404).send("Not Found");
95-
response.status(200).json(install);
95+
return response.status(200).json(install);
9696
// note that we can't use the return here because the schema has
9797
// a nullable field that openapi-backend chokes on
9898
// see https://github.com/typicode/openapi-backend/issues/747

0 commit comments

Comments
 (0)