Skip to content

Commit

Permalink
fix: Use default file name when the setting is empty (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdneo authored Sep 27, 2019
1 parent b7ededc commit 31d6f94
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/show.ts
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ async function showProblemInternal(node: IProblem): Promise<void> {
const fileName: string = leetCodeConfig
.get<string>(
`filePath.${language}.filename`,
leetCodeConfig.get<string>(`filePath.default.filename`, genFileName(node, language)),
leetCodeConfig.get<string>(`filePath.default.filename`) || genFileName(node, language),
)
.trim();

Expand Down

0 comments on commit 31d6f94

Please sign in to comment.