Skip to content

Commit

Permalink
Use the provided numeric value instead of 10
Browse files Browse the repository at this point in the history
  • Loading branch information
bmesuere authored and jheer committed Jun 15, 2021
1 parent f6609d8 commit 2ff99ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/table/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,7 +276,7 @@ export default class Table extends Transformable {
*/
print(options = {}) {
if (typeof options === 'number') {
options = { limit: 10 };
options = { limit: options };
} else if (options.limit == null) {
options.limit = 10;
}
Expand Down

0 comments on commit 2ff99ac

Please sign in to comment.