Skip to content

Commit

Permalink
Fix warning that table is being truncated
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 committed Jan 6, 2025
1 parent 3a87bda commit 7c6f978
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 @@ -220,8 +220,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 7c6f978

Please sign in to comment.