Skip to content

Commit fd4f9a6

Browse files
committed
moving the undefined return outside readwrite action
1 parent 413cb1a commit fd4f9a6

File tree

1 file changed

+2
-2
lines changed
  • lib/storage/providers/IDBKeyValProvider

1 file changed

+2
-2
lines changed

lib/storage/providers/IDBKeyValProvider/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ const provider: StorageProvider = {
6262

6363
return promisifyRequest(store.put(newValue, key));
6464
});
65-
return Promise.all(upsertMany).then(() => undefined);
65+
return Promise.all(upsertMany);
6666
});
67-
}),
67+
}).then(() => undefined),
6868
mergeItem(key, change) {
6969
// Since Onyx already merged the existing value with the changes, we can just set the value directly.
7070
return provider.multiMerge([[key, change]]);

0 commit comments

Comments
 (0)