Browse Source

add test cases

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
tobiasKaminsky 5 years ago
parent
commit
9c1fedb14b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/java/com/owncloud/android/utils/FileStorageUtils.java

+ 2 - 2
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);
     }