Skip to content

Commit 78fe556

Browse files
committed
chore: fix lint issues in definer
1 parent bbcf9de commit 78fe556

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/definer.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ function defineRoute<
8484
const handler: RouteMethodHandler<PPI, MwReq, MwRes> = async (request, context) => {
8585
try {
8686
const { searchParams } = new URL(request.url);
87-
const nextSegmentParams = context ? (await context.params) : undefined
87+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition
88+
const nextSegmentParams = context ? (await context.params) : undefined;
8889
const pathParams = parsePathParams(nextSegmentParams, input.pathParams) as PPO;
8990
const queryParams = parseSearchParams(searchParams, input.queryParams) as QPO;
9091
const body = await parseRequestBody(request, input.method, input.requestBody, input.hasFormData) as RBO;

0 commit comments

Comments
 (0)