Skip to content
Snippets Groups Projects
Commit ef1cf617 authored by OZGCloud's avatar OZGCloud
Browse files

OZG-3452 remove duplicate file removing

parent fce55249
No related branches found
No related tags found
No related merge requests found
...@@ -112,9 +112,7 @@ class FormSolutionsRepresentationsMapper { ...@@ -112,9 +112,7 @@ class FormSolutionsRepresentationsMapper {
long getFileSize(Path path) { long getFileSize(Path path) {
try { try {
var size = Files.size(path); return Files.size(path);
Files.deleteIfExists(path);
return size;
} catch (IOException e) { } catch (IOException e) {
throw new TechnicalException("Error calculate size of tmp file.", e); throw new TechnicalException("Error calculate size of tmp file.", e);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment