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

OZG-3452 remove duplicate file removing

parent fce55249
Branches
Tags
No related merge requests found
......@@ -112,9 +112,7 @@ class FormSolutionsRepresentationsMapper {
long getFileSize(Path path) {
try {
var size = Files.size(path);
Files.deleteIfExists(path);
return size;
return Files.size(path);
} catch (IOException 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