Skip to content

Commit 523ce92

Browse files
committed
as T
1 parent cf70f24 commit 523ce92

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/node/settings.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ export class SettingsProvider<T> {
1717
public async read(): Promise<T> {
1818
try {
1919
const raw = (await fs.readFile(this.settingsPath, "utf8")).trim()
20-
return raw ? JSON.parse(raw) : {}
20+
return raw ? JSON.parse(raw) : ({} as T)
2121
} catch (error: any) {
2222
if (error.code !== "ENOENT") {
2323
logger.warn(error.message)

0 commit comments

Comments
 (0)