Browse Source

Remove unnecessary asyncs

Manav Rathi 1 year ago
parent
commit
9cce8b379c
1 changed files with 3 additions and 3 deletions
  1. 3 3
      desktop/src/main/services/upload.ts

+ 3 - 3
desktop/src/main/services/upload.ts

@@ -82,16 +82,16 @@ export const pendingUploads = async (): Promise<PendingUploads | undefined> => {
     };
     };
 };
 };
 
 
-export const setPendingUploads = async (pendingUploads: PendingUploads) =>
+export const setPendingUploads = (pendingUploads: PendingUploads) =>
     uploadStatusStore.set(pendingUploads);
     uploadStatusStore.set(pendingUploads);
 
 
-export const markUploadedFiles = async (paths: string[]) => {
+export const markUploadedFiles = (paths: string[]) => {
     const existing = uploadStatusStore.get("filePaths");
     const existing = uploadStatusStore.get("filePaths");
     const updated = existing?.filter((p) => !paths.includes(p));
     const updated = existing?.filter((p) => !paths.includes(p));
     uploadStatusStore.set("filePaths", updated);
     uploadStatusStore.set("filePaths", updated);
 };
 };
 
 
-export const markUploadedZipItems = async (
+export const markUploadedZipItems = (
     items: [zipPath: string, entryName: string][],
     items: [zipPath: string, entryName: string][],
 ) => {
 ) => {
     const existing = uploadStatusStore.get("zipItems");
     const existing = uploadStatusStore.get("zipItems");