From b4d9486eaadf9c950a1378170dbcb75f105b77b7 Mon Sep 17 00:00:00 2001 From: Maxime Perrault Date: Thu, 27 Jun 2024 18:44:19 +0200 Subject: [PATCH] feat: claire's review and a bit of boy scout rule --- .../monitorenv/domain/use_cases/missions/CanDeleteMission.kt | 1 - .../monitorfish/APIFishMissionActionsRepository.kt | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/use_cases/missions/CanDeleteMission.kt b/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/use_cases/missions/CanDeleteMission.kt index eb9debd612..e22ea88d2b 100644 --- a/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/use_cases/missions/CanDeleteMission.kt +++ b/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/domain/use_cases/missions/CanDeleteMission.kt @@ -48,7 +48,6 @@ class CanDeleteMission( } return CanDeleteMissionResponse(canDelete = true, sources = listOf()) - } catch (e: Exception) { logger.info("Erreur de communication avec rapportnav") return CanDeleteMissionResponse(canDelete = false, sources = listOf()) diff --git a/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/monitorfish/APIFishMissionActionsRepository.kt b/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/monitorfish/APIFishMissionActionsRepository.kt index 79304fdfd6..3c2ed2eccd 100644 --- a/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/monitorfish/APIFishMissionActionsRepository.kt +++ b/backend/src/main/kotlin/fr/gouv/cacem/monitorenv/infrastructure/monitorfish/APIFishMissionActionsRepository.kt @@ -37,7 +37,7 @@ class APIFishMissionActionsRepository( return@runBlocking missionActions.map { it.toMonitorFishMissionActionEntity() } } catch (e: Exception) { logger.error("Could not fetch mission actions at $missionActionsUrl", e) - + throw e } }