Skip to content

Commit

Permalink
refactor(context): remove lint errors (honojs#3769)
Browse files Browse the repository at this point in the history
* refactor(context): remove lint errors

* remove build errros
  • Loading branch information
yusukebe authored Dec 25, 2024
1 parent bfd839a commit b1335f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -752,10 +752,12 @@ export class Context<
this.#preparedHeaders = {}
}
this.#preparedHeaders['content-type'] = TEXT_PLAIN
if (typeof arg === 'number') {
// @ts-expect-error `Response` due to missing some types-only keys
return this.#newResponse(text, arg, headers)
}
// @ts-expect-error `Response` due to missing some types-only keys
return typeof arg === 'number'
? this.#newResponse(text, arg, headers)
: this.#newResponse(text, arg)
return this.#newResponse(text, arg)
}

/**
Expand Down

0 comments on commit b1335f9

Please sign in to comment.