Neeraj Gupta 2 years ago
parent
commit
38ab84a710
1 changed files with 6 additions and 6 deletions
  1. 6 6
      lib/models/files_split.dart

+ 6 - 6
lib/models/files_split.dart

@@ -14,7 +14,7 @@ class FilesSplit {
   int get totalFileOwnedCount =>
       pendingUploads.length + ownedByCurrentUser.length;
 
-  static split(Iterable<File> files, int currentUserID) {
+  static FilesSplit split(Iterable<File> files, int currentUserID) {
     final List<File> ownedByCurrentUser = [],
         ownedByOtherUsers = [],
         pendingUploads = [];
@@ -26,11 +26,11 @@ class FilesSplit {
       } else {
         ownedByOtherUsers.add(f);
       }
-      return FilesSplit(
-        pendingUploads: pendingUploads,
-        ownedByCurrentUser: ownedByCurrentUser,
-        ownedByOtherUsers: ownedByOtherUsers,
-      );
     }
+    return FilesSplit(
+      pendingUploads: pendingUploads,
+      ownedByCurrentUser: ownedByCurrentUser,
+      ownedByOtherUsers: ownedByOtherUsers,
+    );
   }
 }