Skip to content

fix: divided by 0#36

Open
jsvisa wants to merge 2 commits intogosuri:masterfrom
jsvisa:fix/index-out-of-range
Open

fix: divided by 0#36
jsvisa wants to merge 2 commits intogosuri:masterfrom
jsvisa:fix/index-out-of-range

Conversation

@jsvisa
Copy link

@jsvisa jsvisa commented Jun 4, 2018

No description provided.


// NewBar returns a new progress bar
func NewBar(total int) *Bar {
if total <= 0 {
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if total < 0, maybe panic or not modify to 0

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.

2 participants