Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
wheresrhys committed Aug 29, 2024
1 parent 6fcae52 commit ecb2bdf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/core/src/Route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ function isBodyInit(body: BodyInit | null | object): body is BodyInit {
body instanceof ReadableStream ||
body instanceof URLSearchParams ||
body instanceof String ||
typeof body === 'string' ||
typeof body === 'string' ||
body === null
)
);
}

function sanitizeStatus(status?: number): number {
Expand Down Expand Up @@ -216,7 +216,7 @@ class Route {

if (!bodyIsBodyInit) {
if (typeof body === 'undefined') {
body = null
body = null;
} else if (typeof body === 'object') {
// convert to json if we need to
body = JSON.stringify(body);
Expand Down

0 comments on commit ecb2bdf

Please sign in to comment.