Skip to content

Commit fcc91f6

Browse files
committed
fix: trim trailing newlines in help and trace logs formatters
1 parent 24d09ff commit fcc91f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/commands/help.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ export const helpCommand = buildCommand({
1919
"Display help information. Run 'sentry help' for an overview, " +
2020
"or 'sentry help <command>' for detailed help on a specific command.",
2121
},
22-
output: { human: (s: string) => s },
22+
output: { human: (s: string) => s.trimEnd() },
2323
parameters: {
2424
flags: {},
2525
positional: {

src/commands/trace/logs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ function formatTraceLogsHuman(data: TraceLogsData): string {
5959
const countText = `Showing ${data.logs.length} log${data.logs.length === 1 ? "" : "s"} for trace ${data.traceId}.`;
6060
const tip = hasMore ? " Use --limit to show more." : "";
6161
parts.push(formatFooter(`${countText}${tip}`));
62-
return parts.join("");
62+
return parts.join("").trimEnd();
6363
}
6464

6565
/** Maximum allowed value for --limit flag */

0 commit comments

Comments
 (0)