mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-02 01:36:13 +00:00
chore: Enable "curly" rule to avoid single-statement if confusion/errors.
This commit is contained in:
@@ -7,7 +7,9 @@ export function formatHelpExample(command: string, description: string): string
|
||||
}
|
||||
|
||||
export function formatHelpExampleLine(command: string, description: string): string {
|
||||
if (!description) return ` ${theme.command(command)}`;
|
||||
if (!description) {
|
||||
return ` ${theme.command(command)}`;
|
||||
}
|
||||
return ` ${theme.command(command)} ${theme.muted(`# ${description}`)}`;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user