happy linting
This commit is contained in:
parent
409955b69c
commit
94b6ada40d
5
don.go
5
don.go
@ -100,7 +100,10 @@ func Ready(f func() bool, timeout time.Duration, retry time.Duration, bar bool)
|
|||||||
bar := progressbar.Default(d)
|
bar := progressbar.Default(d)
|
||||||
|
|
||||||
for i := int64(0); i < d; i++ {
|
for i := int64(0); i < d; i++ {
|
||||||
bar.Add(1)
|
if err := bar.Add(1); err != nil {
|
||||||
|
log.Error().Err(err).Msg("could not add to bar")
|
||||||
|
}
|
||||||
|
|
||||||
time.Sleep(time.Second)
|
time.Sleep(time.Second)
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user