~jan0sch/smederee

Showing details for patch 89f0c1140461955925352eb48fed7ed4ed1c439d.
2024-02-04 (Sun), 4:19 PM - Jens Grassel - 89f0c1140461955925352eb48fed7ed4ed1c439d

Fix discarded non unit value in `DarcsCommandsTest`

Summary of changes
1 files modified with 1 lines added and 4 lines removed
  • modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala with 1 added and 4 removed lines
diff -rN -u old-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala new-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala
--- old-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala	2025-01-13 01:26:45.329762806 +0000
+++ new-smederee/modules/darcs/src/test/scala/de/smederee/darcs/DarcsCommandsTest.scala	2025-01-13 01:26:45.329762806 +0000
@@ -25,15 +25,12 @@
 
 import munit.*
 
-import scala.annotation.nowarn
-
 final class DarcsCommandsTest extends CatsEffectSuite with TestHelpers {
     val darcsBinary = Paths.get("darcs")
 
-    @nowarn("msg=discarded non-Unit value.*")
     val tempWorkingDirectory = ResourceFunFixture(
         Resource.make(IO(Files.createTempDirectory("darcs-cmd-test-").toAbsolutePath()))(path =>
-            IO(deleteDirectory(path))
+            IO(deleteDirectory(path)) *> IO.unit
         )
     )