Skip to content

Commit

Permalink
chore: apply automated lint fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Nov 3, 2023
1 parent 80f3b23 commit be20212
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/error.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ export class H3Error<DataT = any> extends Error {
* @return {H3Error} - An instance of H3Error.
*/
export function createError<DataT = any>(
input: string | (Partial<H3Error<DataT>> & { status?: number; statusText?: string }),
input:
| string
| (Partial<H3Error<DataT>> & { status?: number; statusText?: string }),
): H3Error {
if (typeof input === "string") {
return new H3Error<DataT>(input);

Check warning on line 73 in src/error.ts

View check run for this annotation

Codecov / codecov/patch

src/error.ts#L73

Added line #L73 was not covered by tests
Expand Down

0 comments on commit be20212

Please sign in to comment.