Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jridgewell committed Jul 22, 2023
1 parent 65ccecb commit 6b8eacf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/next/src/server/lib/server-ipc/invoke-request.ts
Expand Up @@ -81,6 +81,10 @@ export interface PipeTarget {
off: (event: 'close', cb: () => void) => void
}

export function isAbortError(e: any): e is Error & { name: 'AbortError' } {
return e?.name === 'AbortError'
}

export async function pipeReadable(
readable: ReadableStream,
writable: PipeTarget
Expand Down Expand Up @@ -144,7 +148,3 @@ export async function pipeReadable(
}
}
}

export function isAbortError(e: any): e is Error & { name: 'AbortError' } {
return e?.name === 'AbortError'
}

0 comments on commit 6b8eacf

Please sign in to comment.