Remove unnecessary asyncs
This commit is contained in:
parent
46d67f0c49
commit
9cce8b379c
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
export const markUploadedFiles = async (paths: string[]) => {
|
||||
export const markUploadedFiles = (paths: string[]) => {
|
||||
const existing = uploadStatusStore.get("filePaths");
|
||||
const updated = existing?.filter((p) => !paths.includes(p));
|
||||
uploadStatusStore.set("filePaths", updated);
|
||||
};
|
||||
|
||||
export const markUploadedZipItems = async (
|
||||
export const markUploadedZipItems = (
|
||||
items: [zipPath: string, entryName: string][],
|
||||
) => {
|
||||
const existing = uploadStatusStore.get("zipItems");
|
||||
|
|
Loading…
Add table
Reference in a new issue