Skip to content

Commit

Permalink
chore: lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pi0 committed Jun 20, 2023
1 parent 8468b90 commit 3494084
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/response.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { MIMES } from "./consts";
import { sanitizeStatusCode, sanitizeStatusMessage } from "./sanitize";

const defer =
typeof setImmediate !== "undefined" ? setImmediate : (fn: () => any) => fn();
typeof setImmediate === "undefined" ? (fn: () => any) => fn() : setImmediate;

export function send(event: H3Event, data?: any, type?: string): Promise<void> {
if (type) {
Expand Down

0 comments on commit 3494084

Please sign in to comment.