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 31d6f94

Browse files
authored
fix: Use default file name when the setting is empty (#433)
1 parent b7ededc commit 31d6f94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/commands/show.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ async function showProblemInternal(node: IProblem): Promise<void> {
150150
const fileName: string = leetCodeConfig
151151
.get<string>(
152152
`filePath.${language}.filename`,
153-
leetCodeConfig.get<string>(`filePath.default.filename`,genFileName(node, language)),
153+
leetCodeConfig.get<string>(`filePath.default.filename`)||genFileName(node, language),
154154
)
155155
.trim();
156156

0 commit comments

Comments
(0)

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