Skip to content

Commit

Permalink
chore(lint): remove unused null coalescing operator (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
effigies authored Jun 12, 2024
1 parent 7a932da commit da5d7b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion command/help/_help_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class HelpGenerator {
}

function capitalize(string: string): string {
return string?.charAt(0).toUpperCase() + string.slice(1) ?? "";
return string.charAt(0).toUpperCase() + string.slice(1);
}

function inspect(value: unknown, colors: boolean): string {
Expand Down

0 comments on commit da5d7b2

Please sign in to comment.