diff --git a/src/main/java/com/owncloud/android/utils/FileStorageUtils.java b/src/main/java/com/owncloud/android/utils/FileStorageUtils.java index 65ae7236f5..e7f38e5d5c 100644 --- a/src/main/java/com/owncloud/android/utils/FileStorageUtils.java +++ b/src/main/java/com/owncloud/android/utils/FileStorageUtils.java @@ -174,8 +174,8 @@ public final class FileStorageUtils { } // Path must be normalized; otherwise the next RefreshFolderOperation has a mismatch and deletes the local file. - return (remotePath + OCFile.PATH_SEPARATOR + subPath + - (fileName == null ? "" : fileName)).replaceAll(OCFile.PATH_SEPARATOR + "+", OCFile.PATH_SEPARATOR); + return (remotePath + OCFile.PATH_SEPARATOR + subPath + (fileName == null ? "" : fileName)) + .replaceAll(OCFile.PATH_SEPARATOR + "+", OCFile.PATH_SEPARATOR); }