Skip to content

Fix exception thrown on 0% progress bars#21

Merged
jazzsequence merged 6 commits intomainfrom
fix-thrown-exception-on-0-percent
May 17, 2023
Merged

Fix exception thrown on 0% progress bars#21
jazzsequence merged 6 commits intomainfrom
fix-thrown-exception-on-0-percent

Conversation

@jazzsequence
Copy link
Owner

@jazzsequence jazzsequence commented May 17, 2023

This PR adjusts the error handling for the progress value, changing the check from an empty to a $progress === '' explicitly. It also removes the check for a $width value to throw the error because $width should not be explicitly required (implied from $progress).

fixes #19

@jazzsequence jazzsequence merged commit 1cd4c8a into main May 17, 2023
@jazzsequence jazzsequence deleted the fix-thrown-exception-on-0-percent branch May 17, 2023 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0% width triggers exception

1 participant