Skip to content

Commit 08360ff

Browse files
sergicalclaude
andcommitted
style: fix lint formatting for ternary expressions
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 7745916 commit 08360ff

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/commands/log/list.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,7 @@ async function executeSingleFetch(
200200
}
201201

202202
// API returns newest first. Reverse only when user wants oldest-first.
203-
const ordered =
204-
flags.sort === "oldest" ? [...logs].reverse() : logs;
203+
const ordered = flags.sort === "oldest" ? [...logs].reverse() : logs;
205204

206205
const hasMore = logs.length >= flags.limit;
207206
const countText = `Showing ${logs.length} log${logs.length === 1 ? "" : "s"}.`;
@@ -465,8 +464,7 @@ async function executeTraceSingleFetch(
465464
};
466465
}
467466

468-
const ordered =
469-
flags.sort === "oldest" ? [...logs].reverse() : logs;
467+
const ordered = flags.sort === "oldest" ? [...logs].reverse() : logs;
470468

471469
const hasMore = logs.length >= flags.limit;
472470
const countText = `Showing ${logs.length} log${logs.length === 1 ? "" : "s"} for trace ${traceId}.`;

src/commands/trace/logs.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -209,8 +209,7 @@ export const logsCommand = buildCommand({
209209
);
210210

211211
// API returns newest-first. Reverse only when user wants oldest-first.
212-
const ordered =
213-
flags.sort === "oldest" ? [...logs].reverse() : logs;
212+
const ordered = flags.sort === "oldest" ? [...logs].reverse() : logs;
214213
const hasMore = ordered.length >= flags.limit;
215214

216215
const emptyMessage =

0 commit comments

Comments
 (0)