Remove unused return

This commit is contained in:
Manav Rathi
2024-10-03 11:42:09 +05:30
parent d93d4a3601
commit d0341ba50c

View File

@@ -28,6 +28,14 @@ import {
setCollectionLastSyncTime,
} from "./collectionService";
/**
* Fetch all files of the given {@link type}, belonging to the given
* {@link collections}, from remote and update our local database.
*
* In addition to updating the local database, it also calls the provided
* {@link setFiles} callback with the latest decrypted files after each batch
* the new and/or updated files are received from remote.
*/
export const syncFiles = async (
type: "normal" | "hidden",
collections: Collection[],
@@ -58,7 +66,6 @@ export const syncFiles = async (
setCollectionLastSyncTime(collection, collection.updationTime);
}
if (didUpdateFiles) exportService.onLocalFilesUpdated();
return files;
};
export const getFiles = async (