File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed
Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff 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 } .` ;
Original file line number Diff line number Diff 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 =
You can’t perform that action at this time.
0 commit comments