Skip to content

Commit

Permalink
scalafix
Browse files Browse the repository at this point in the history
  • Loading branch information
armanbilge committed Apr 16, 2023
1 parent 9cb16ec commit 6e44f45
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dom/src/main/scala/org/http4s/dom/FetchEventContext.scala
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ final class FetchEventContext[F[_]] private (
)

object FetchEventContext {
val IOKey = Key.newKey[SyncIO, FetchEventContext[IO]].unsafeRunSync()
val IOKey: Key[FetchEventContext[IO]] =
Key.newKey[SyncIO, FetchEventContext[IO]].unsafeRunSync()

def fromRequest(request: Request[IO]): IO[FetchEventContext[IO]] =
IO.fromEither(request.attributes.lookup(IOKey).toRight(new NoSuchElementException))
Expand Down

0 comments on commit 6e44f45

Please sign in to comment.