From 5c7147bb176495096ded2014d0165f7baa59ce86 Mon Sep 17 00:00:00 2001 From: Debucquoy Anthony Date: Wed, 13 Mar 2024 18:05:35 +0100 Subject: [PATCH] fixing the double throw before the merge Signed-off-by: Debucquoy Anthony --- .../java/ovh/herisson/Clyde/Services/StorageService.java | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/backend/src/main/java/ovh/herisson/Clyde/Services/StorageService.java b/backend/src/main/java/ovh/herisson/Clyde/Services/StorageService.java index cb3ceb0..c73dd0b 100644 --- a/backend/src/main/java/ovh/herisson/Clyde/Services/StorageService.java +++ b/backend/src/main/java/ovh/herisson/Clyde/Services/StorageService.java @@ -56,12 +56,8 @@ public class StorageService { public void delete(StorageFile file) throws SecurityException { File f = new File(file.getUrl()); - //Delete le fichier - try{ - f.delete(); - } catch (Exception e) { - throw new SecurityException(); - } + f.delete(); + //Delete l'entité fileRepo.delete(file); }