Skip to content

Commit 164eb35

Browse files
committed
chore: let -> const
1 parent f2ad398 commit 164eb35

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

server/utils/atproto/storage.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export class OAuthStateStore implements NodeSavedStateStore {
3535
}
3636

3737
async del() {
38-
let stateKey = getCookie(this.event, this.cookieKey)
38+
const stateKey = getCookie(this.event, this.cookieKey)
3939
deleteCookie(this.event, this.cookieKey)
4040
if (stateKey) {
4141
await this.storage.del(stateKey)
@@ -58,7 +58,7 @@ export class OAuthSessionStore implements NodeSavedSessionStore {
5858
async get(): Promise<NodeSavedSession | undefined> {
5959
const sessionKey = getCookie(this.event, this.cookieKey)
6060
if (!sessionKey) return
61-
let result = await this.storage.getItem<NodeSavedSession>(sessionKey)
61+
const result = await this.storage.getItem<NodeSavedSession>(sessionKey)
6262
if (!result) return
6363
return result
6464
}
@@ -73,7 +73,7 @@ export class OAuthSessionStore implements NodeSavedSessionStore {
7373
}
7474

7575
async del() {
76-
let sessionKey = getCookie(this.event, this.cookieKey)
76+
const sessionKey = getCookie(this.event, this.cookieKey)
7777
if (sessionKey) {
7878
await this.storage.del(sessionKey)
7979
}

0 commit comments

Comments
 (0)