Skip to content

Commit 5d92872

Browse files
carlspringsteve-todorov
authored andcommitted
Code style fixes
1 parent 498e809 commit 5d92872

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

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -862,10 +862,14 @@ public void copy(Path source,
862862
if (exists(s3Target))
863863
{
864864
if (!actualOptions.contains(StandardCopyOption.REPLACE_EXISTING))
865+
{
865866
throw new FileAlreadyExistsException(format("target already exists: %s", target));
867+
}
866868

867869
if (Files.isDirectory(source))
870+
{
868871
delete(s3Target);
872+
}
869873
}
870874

871875
if (Files.isDirectory(source))
@@ -906,6 +910,7 @@ private String encodeUrl(final String bucketNameOrigin,
906910
{
907911
throw new UnsupportedEncodingException("URL could not be encoded: " + e.getMessage());
908912
}
913+
909914
return encodedUrl;
910915
}
911916

0 commit comments

Comments
 (0)