Skip to content

Commit

Permalink
condBuilder returns BarFillerBuilder
Browse files Browse the repository at this point in the history
  • Loading branch information
vbauerster committed Dec 14, 2021
1 parent fe7758b commit cabcd4d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion _examples/reverseBar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ func main() {
p.Wait()
}

func condBuilder(cond bool) mpb.BarFillerBuilderFunc {
func condBuilder(cond bool) mpb.BarFillerBuilder {
return mpb.BarFillerBuilderFunc(func() mpb.BarFiller {
bs := mpb.BarStyle()
if cond {
Expand Down
2 changes: 1 addition & 1 deletion _examples/spinnerBar/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ func main() {
p.Wait()
}

func condBuilder(cond bool) mpb.BarFillerBuilderFunc {
func condBuilder(cond bool) mpb.BarFillerBuilder {
return mpb.BarFillerBuilderFunc(func() mpb.BarFiller {
if cond {
// spinner Bar on cond
Expand Down

0 comments on commit cabcd4d

Please sign in to comment.