Procházet zdrojové kódy

Merge pull request #308 from JediahDizon/master

Fix error message on `mkdir` function
Travis Nuttall před 5 roky
rodič
revize
e10f658b84
No account linked to committer's email address

+ 1
- 1
android/src/main/java/com/RNFetchBlob/RNFetchBlobFS.java Zobrazit soubor

@@ -535,7 +535,7 @@ class RNFetchBlobFS {
535 535
     static void mkdir(String path, Promise promise) {
536 536
         File dest = new File(path);
537 537
         if(dest.exists()) {
538
-            promise.reject("EEXIST", dest.isDirectory() ? "Folder" : "File" + " '" + path + "' already exists");
538
+            promise.reject("EEXIST", (dest.isDirectory() ? "Folder" : "File") + " '" + path + "' already exists");
539 539
             return;
540 540
         }
541 541
         try {