Skip to content

Commit d305893

Browse files
committed
style: format IndexedDB recovery guards
1 parent 91a2dd5 commit d305893

1 file changed

Lines changed: 8 additions & 2 deletions

File tree

‎resources/js/hooks/use-stash.ts‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ const loadImages = (): void => {
8686

8787
imageStorageRestored = true;
8888
stored.forEach((draft, key) => {
89-
if ([...clearedImagePrefixes].some((prefix) => key.startsWith(prefix))) {
89+
if (
90+
[...clearedImagePrefixes].some((prefix) => key.startsWith(prefix))
91+
) {
9092
return;
9193
}
9294

@@ -189,7 +191,11 @@ const storeImages = (
189191
return;
190192
}
191193

192-
if (!discard && next.length === 0 && images.get(key)?.images.length === 0) {
194+
if (
195+
!discard &&
196+
next.length === 0 &&
197+
images.get(key)?.images.length === 0
198+
) {
193199
return;
194200
}
195201

0 commit comments

Comments
 (0)