From 2a0be803ae3f1de22ef845ebb80437d68fde1b2b Mon Sep 17 00:00:00 2001 From: tylerjmchugh Date: Mon, 13 Jan 2025 09:10:48 -0500 Subject: [PATCH] Fix whitespace --- .../fao/geonet/api/records/attachments/FilesystemStore.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/src/main/java/org/fao/geonet/api/records/attachments/FilesystemStore.java b/core/src/main/java/org/fao/geonet/api/records/attachments/FilesystemStore.java index fa77b781b22..be110b8af04 100644 --- a/core/src/main/java/org/fao/geonet/api/records/attachments/FilesystemStore.java +++ b/core/src/main/java/org/fao/geonet/api/records/attachments/FilesystemStore.java @@ -206,8 +206,8 @@ public MetadataResource putResource(final ServiceContext context, final String m try { Files.copy(is, filePath, StandardCopyOption.REPLACE_EXISTING); } catch (InputStreamLimitExceededException e) { - Files.deleteIfExists(filePath); - throw e; + Files.deleteIfExists(filePath); + throw e; } if (changeDate != null) { IO.touch(filePath, FileTime.from(changeDate.getTime(), TimeUnit.MILLISECONDS));