happy linting
Some checks reported errors
continuous-integration/drone/push Build was killed
continuous-integration/drone/tag Build is passing

This commit is contained in:
Marvin Preuss 2021-09-01 13:15:49 +02:00
parent 409955b69c
commit 94b6ada40d

5
don.go
View File

@ -100,7 +100,10 @@ func Ready(f func() bool, timeout time.Duration, retry time.Duration, bar bool)
bar := progressbar.Default(d)
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)
}
} else {