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 495c35e commit 4578429
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { createManifests, installRequireAndChunkLoad } from './manifest'
import type { NextRequest, NextFetchEvent } from 'next/server'
import type { RenderOpts } from 'next/dist/server/app-render/types'
import type { ParsedUrlQuery } from 'querystring'
import EventEmitter from 'events'

installRequireAndChunkLoad()

Expand Down
8 changes: 4 additions & 4 deletions packages/next/src/server/lib/server-ipc/invoke-request.ts
Original file line number Diff line number Diff line change
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 4578429

Please sign in to comment.