Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 523ce92

Browse files
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) : ({}asT)
2121
} catch (error: any) {
2222
if (error.code !== "ENOENT") {
2323
logger.warn(error.message)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /