Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
kubukoz committed Oct 11, 2023
1 parent 3afbb37 commit a759477
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/src/main/scala/com/kubukoz/next/util/middlewares.scala
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ object middlewares {
client =>
Client[F] { req =>
getToken.toResource.flatMap {
// `eval` is type annotated as a workaround for https://github.com/lampepfl/dotty/issues/14333
case None => Resource.eval[F, Unit](warnEmptyToken) *> client.run(req)
case None => Resource.eval(warnEmptyToken) *> client.run(req)
case Some(token) => client.run(withToken(token.value.trim)(req))
}
}
Expand Down

0 comments on commit a759477

Please sign in to comment.