aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/com/juick/service
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2021-10-30 04:37:33 +0300
committerGravatar Vitaly Takmazov2021-10-30 04:37:33 +0300
commitb510c139c7b0931c1e17aeaf13b92488f4da1fd1 (patch)
treeb775ab9e9937007c3d1689a2b07f894d1a6f3157 /src/main/java/com/juick/service
parentc13a2d02b037f7f0a1c0300ecec1b983436127ee (diff)
Remove unused move option
Diffstat (limited to 'src/main/java/com/juick/service')
-rw-r--r--src/main/java/com/juick/service/FileSystemStorageService.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/com/juick/service/FileSystemStorageService.java b/src/main/java/com/juick/service/FileSystemStorageService.java
index 5b462bd7..89669283 100644
--- a/src/main/java/com/juick/service/FileSystemStorageService.java
+++ b/src/main/java/com/juick/service/FileSystemStorageService.java
@@ -222,7 +222,7 @@ public class FileSystemStorageService implements StorageService {
String originalName = getAvatarFileName(user, ext);
Path originalPath = Paths.get(avatarOriginalDir, originalName);
Path tmpPath = Paths.get(tmpDir, tempFilename);
- CopyOption[] copyOptions = new CopyOption[] { StandardCopyOption.REPLACE_EXISTING, StandardCopyOption.ATOMIC_MOVE };
+ CopyOption[] copyOptions = new CopyOption[] { StandardCopyOption.REPLACE_EXISTING };
Files.move(tmpPath, originalPath,copyOptions);
BufferedImage originalImage = ImageIO.read(originalPath.toFile());
String targetExt = "png";