Skip to content

Commit

Permalink
remove early hints
Browse files Browse the repository at this point in the history
  • Loading branch information
ulfgebhardt committed Mar 11, 2024
1 parent 7d30ed2 commit 0872ba2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions presenter/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ async function startServer() {
next()
} else {
const { body, statusCode, headers, earlyHints } = httpResponse

Check failure on line 82 in presenter/server/index.ts

View workflow job for this annotation

GitHub Actions / Lint - Presenter

'earlyHints' is assigned a value but never used
if (res.writeEarlyHints)
res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
// if (res.writeEarlyHints)
// res.writeEarlyHints({ link: earlyHints.map((e) => e.earlyHintLink) })
headers.forEach(([name, value]) => res.setHeader(name, value))
res.status(statusCode)
// For HTTP streams use httpResponse.pipe() instead, see https://vike.dev/stream
Expand Down

0 comments on commit 0872ba2

Please sign in to comment.