Skip to content

Commit

Permalink
#1806 Unnecessary use of conditional expression for default assignment.
Browse files Browse the repository at this point in the history
  • Loading branch information
qdraw committed Nov 9, 2024
1 parent e590708 commit 829155b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export class CommaSeperatedFileList {
if (element !== fileExtension) {
uniqueExtensions.add(fileExtension);
} else {
uniqueExtensions.add(messageNoExtensionItem ? messageNoExtensionItem : "without extension");
uniqueExtensions.add(messageNoExtensionItem || "without extension");
}
}
return Array.from(uniqueExtensions).sort((a, b) =>
Expand Down

0 comments on commit 829155b

Please sign in to comment.