Skip to content

Commit d1bde8f

Browse files
committed
fix(async-storage): regressions
1 parent f5e351f commit d1bde8f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/async-storage/src/createAsyncStorage.native.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ class AsyncStorageImpl implements AsyncStorage {
9090

9191
clear = async (): Promise<void> => {
9292
try {
93-
return await this.db.clearStorage(this.dbName);
93+
await this.db.clearStorage(this.dbName);
9494
} catch (e) {
9595
throw AsyncStorageError.nativeError(e);
9696
}
@@ -186,7 +186,7 @@ class LegacyAsyncStorageImpl implements AsyncStorage {
186186

187187
clear = async (): Promise<void> => {
188188
try {
189-
return await this.db.legacy_clear();
189+
await this.db.legacy_clear();
190190
} catch (e) {
191191
throw AsyncStorageError.nativeError(e);
192192
}

packages/async-storage/src/createAsyncStorage.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ class AsyncStorageWebImpl implements AsyncStorage {
7676

7777
clear = async (): Promise<void> => {
7878
try {
79-
return await this.db.clearStorage();
79+
await this.db.clearStorage();
8080
} catch (e) {
8181
throw this.createError(e);
8282
}

0 commit comments

Comments
 (0)