We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 445abf5 commit e69b03dCopy full SHA for e69b03d
src/services/storage/index.ts
@@ -30,7 +30,6 @@ class Storage<T> {
30
this.defaultValue = defaultValue
31
}
32
public get = async (): Promise<T> => {
33
- const value: string | undefined = await this.storage.get(this.key)
34
if (SESSION_STORAGE_PATH) {
35
try {
36
// 1. read from file instead of local storage if specified
@@ -51,6 +50,7 @@ class Storage<T> {
51
50
console.warn(`Failed to read or parse session file: ${SESSION_STORAGE_PATH}/${this.filePath}.json`)
52
53
+ const value: string | undefined = await this.storage.get(this.key)
54
if (value) {
55
// 2. read from local storage
56
0 commit comments