~jan0sch/smederee

Showing details for patch 4c059165804333f969b2fe5b632444f120f612e7.
2023-05-19 (Fri), 3:38 PM - Jens Grassel - 4c059165804333f969b2fe5b632444f120f612e7

Code Cleanup: Fix discard non unit value warning.

Summary of changes
1 files modified with 1 lines added and 1 lines removed
  • modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala with 1 added and 1 removed lines
diff -rN -u old-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala new-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala
--- old-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala	2025-01-16 12:55:27.053864941 +0000
+++ new-smederee/modules/hub/src/main/scala/de/smederee/hub/VcsRepositoryRoutes.scala	2025-01-16 12:55:27.053864941 +0000
@@ -1007,7 +1007,7 @@
                           log.debug(
                             s"User repository directory does not exist, trying to create it: $directory"
                           )
-                          Files.createDirectories(directory)
+                          val _ = Files.createDirectories(directory)
                         }
                       }
                       repoMetadata = VcsRepository(