Skip to content

Commit

Permalink
Fix warning that table is being truncated (#5702)
Browse files Browse the repository at this point in the history
This output would absolutely never print because of the inversed sign
  • Loading branch information
NullSoldier authored Jan 6, 2025
1 parent 5ac1e19 commit aff7f6d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions ironfish-cli/src/ui/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -222,8 +222,10 @@ class Table<T extends Record<string, unknown>> {
}
this.options.printLine(` ${rowValues.join(' ')}`)
}
if (this.options.limit && this.options.limit <= 0 && rows.length >= this.options.limit) {
this.options.printLine(`...\n[see more rows by using --limit flag]`)
if (this.options.limit && this.options.limit >= 0 && rows.length >= this.options.limit) {
this.options.printLine(
`...\nsee ${rows.length - slicedRows.length} rows using --limit flag`,
)
}
}
}
Expand Down

0 comments on commit aff7f6d

Please sign in to comment.