Skip to content

Commit 0aae7e8

Browse files
authored
Code style fixes
1 parent c00de9d commit 0aae7e8

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/carlspring/cloud/storage/s3fs/S3FileSystemProvider.java

+5
Original file line numberDiff line numberDiff line change
@@ -853,10 +853,14 @@ public void copy(Path source,
853853
if (exists(s3Target))
854854
{
855855
if (!actualOptions.contains(StandardCopyOption.REPLACE_EXISTING))
856+
{
856857
throw new FileAlreadyExistsException(format("target already exists: %s", target));
858+
}
857859

858860
if (Files.isDirectory(source))
861+
{
859862
delete(s3Target);
863+
}
860864
}
861865

862866
if (Files.isDirectory(source))
@@ -896,6 +900,7 @@ private String encodeUrl(final String bucketNameOrigin,
896900
{
897901
throw new UnsupportedEncodingException("URL could not be encoded: " + e.getMessage());
898902
}
903+
899904
return encodedUrl;
900905
}
901906

0 commit comments

Comments
 (0)