Skip to content

Commit e1350f9

Browse files
Remove unnecessary let
1 parent 70341d6 commit e1350f9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/persistQueryClient/persist.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,7 @@ export function persistQueryClient(
153153
}
154154

155155
// Attempt restore
156-
let restorePromise = Promise.resolve()
157-
restorePromise = persistQueryClientRestore(props).then(() => {
156+
const restorePromise = persistQueryClientRestore(props).then(() => {
158157
if (!hasUnsubscribed) {
159158
// Subscribe to changes in the query cache to trigger the save
160159
persistQueryClientUnsubscribe = persistQueryClientSubscribe(props)

0 commit comments

Comments
 (0)