diff options
| author | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-04-29 22:40:26 +0000 |
|---|---|---|
| committer | opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com> | 2026-04-29 22:40:26 +0000 |
| commit | 12cbfe5b640d41310cc62dc6aaa3e8bc112a7a1f (patch) | |
| tree | e05971c25a187f6247b2a6c0f7a85e93c052f2ad /packages/app/src/utils | |
| parent | d7b7be1909d614a4022b345bdbeef0c1ec32e159 (diff) | |
| download | opencode-12cbfe5b640d41310cc62dc6aaa3e8bc112a7a1f.tar.gz opencode-12cbfe5b640d41310cc62dc6aaa3e8bc112a7a1f.zip | |
chore: generate
Diffstat (limited to 'packages/app/src/utils')
| -rw-r--r-- | packages/app/src/utils/persist.ts | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/packages/app/src/utils/persist.ts b/packages/app/src/utils/persist.ts index 8f3e08073..627f3a5a1 100644 --- a/packages/app/src/utils/persist.ts +++ b/packages/app/src/utils/persist.ts @@ -475,7 +475,10 @@ export const Persist = { }, } -export function removePersisted(target: { storage?: string; legacyStorageNames?: string[]; key: string }, platform?: Platform) { +export function removePersisted( + target: { storage?: string; legacyStorageNames?: string[]; key: string }, + platform?: Platform, +) { const isDesktop = platform?.platform === "desktop" && !!platform.storage if (isDesktop) { @@ -556,7 +559,9 @@ export function persisted<T>( const current = currentStorage as AsyncStorage const legacyStore = legacyStorage as AsyncStorage | undefined - const legacyStores = legacyStorageNames.map((name) => platform.storage?.(name) as AsyncStorage | undefined).filter((x) => !!x) + const legacyStores = legacyStorageNames + .map((name) => platform.storage?.(name) as AsyncStorage | undefined) + .filter((x) => !!x) const api: AsyncStorage = { getItem: async (key) => { |
