Skip to content

Commit

Permalink
Syntax/formatting issues from accepted code suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
forkedcancel committed Sep 14, 2023
1 parent 4c82c19 commit f916dc6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion std/shared/src/main/scala/cats/effect/std/Hotswap.scala
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ object Hotswap {
case (r, fin) =>
exclusive.mapK(poll).onCancel(Resource.eval(fin)).surround {
swapFinalizer(Acquired(r, fin)).as(r)
})
}
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,8 @@ class HotswapSpec extends BaseSpec { outer =>
Hotswap[IO, Unit](Resource.unit)
.use {
case (hs, _) =>
hs.swap(Resource.make(open.set(true))(_ => open.getAndSet(false).map(_ should beTrue).void))
hs.swap(Resource.make(open.set(true))(_ =>
open.getAndSet(false).map(_ should beTrue).void))
}
.race(IO.unit) *> open.get.map(_ must beFalse)
}
Expand Down

0 comments on commit f916dc6

Please sign in to comment.