Skip to content

fixing off-by-1 error in progress bar examples#128

Merged
schlessera merged 1 commit intowp-cli:masterfrom
lf-jeremy:progress-bar-example-test-notify-fix
Mar 12, 2018
Merged

fixing off-by-1 error in progress bar examples#128
schlessera merged 1 commit intowp-cli:masterfrom
lf-jeremy:progress-bar-example-test-notify-fix

Conversation

@lf-jeremy
Copy link
Copy Markdown
Contributor

Fixes #127

Resolves off-by-1 error in test_notify function.

While changing the comparison operator fixes this issue, the need for a tick count parameter could be avoided altogether as described in this issue comment. Given the normal use case is to tick a number of times equal to the progress bar tick total, the passed progress bar object could be introspected if appropriately exposed.

@schlessera schlessera merged commit 69863a0 into wp-cli:master Mar 12, 2018
@schlessera schlessera added this to the 0.11.9 milestone Mar 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Off-by-one error in progress bar example code

2 participants