Skip to content

Commit 273bbf0

Browse files
author
Krzysztof Borowy
committed
example nit
1 parent ea804e2 commit 273bbf0

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

packages/api/example/ExampleStorage.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ class ExampleStorage implements AsyncStorage<MyModel, MyExampleExtension> {
3737
keys: K[]
3838
): Promise<{ [k in K]: MyModel[k] }> => {
3939
return keys.reduce((entries, key) => {
40-
return {
41-
...entries,
42-
[key]: this.storage[key] ?? null,
43-
};
40+
entries[key] = this.storage[key] ?? null;
41+
return entries;
4442
}, {} as { [k in K]: MyModel[k] });
4543
};
4644

0 commit comments

Comments
 (0)