Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
fix: Use default file name when the setting is empty
  • Loading branch information
jdneo committed Sep 27, 2019
commit 8eeefd4e29eec5cb1d116c46fff16591b13a2ab7
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