fixing the double throw before the merge
All checks were successful
Build and test backend / Build-backend (pull_request) Successful in 2m3s
Build and test backend / Test-backend (pull_request) Successful in 1m57s
Build and test FrontEnd / Build-frontend (pull_request) Successful in 24s

Signed-off-by: Debucquoy Anthony <d.tonitch@gmail.com>
This commit is contained in:
Debucquoy Anthony 2024-03-13 18:05:35 +01:00
parent 2a58c335f2
commit 5c7147bb17

View File

@ -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();
}
//Delete l'entité
fileRepo.delete(file);
}