fixing the double throw before the merge
Signed-off-by: Debucquoy Anthony <d.tonitch@gmail.com>
This commit is contained in:
		| @ -56,12 +56,8 @@ public class StorageService { | |||||||
|  |  | ||||||
|     public void delete(StorageFile file) throws SecurityException { |     public void delete(StorageFile file) throws SecurityException { | ||||||
|         File f = new File(file.getUrl()); |         File f = new File(file.getUrl()); | ||||||
|         //Delete le fichier |  | ||||||
|         try{ |  | ||||||
|         f.delete(); |         f.delete(); | ||||||
|         } catch (Exception e) { |  | ||||||
|             throw new SecurityException(); |  | ||||||
|         } |  | ||||||
|         //Delete l'entité |         //Delete l'entité | ||||||
|         fileRepo.delete(file); |         fileRepo.delete(file); | ||||||
|     } |     } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user