Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ctongfei committed Mar 24, 2024
1 parent 57046ac commit 7ed2fa4
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions src/main/java/me/tongfei/progressbar/ProgressBarBuilder.java
Original file line number Diff line number Diff line change
Expand Up @@ -136,11 +136,17 @@ public ProgressBar build() {
clearDisplayOnFinish,
processed,
elapsed,
renderer == null ? new DefaultProgressBarRenderer(
style, unitName, unitSize,
(renderer == null
? new DefaultProgressBarRenderer(
style, unitName, unitSize,
showSpeed, speedFormat, speedUnit,
!hideEta, eta),
consumer == null ? Util.createConsoleConsumer(maxRenderedLength) : consumer
!hideEta, eta)
: renderer
),
(consumer == null
? Util.createConsoleConsumer(maxRenderedLength)
: consumer
)
);
}
}

0 comments on commit 7ed2fa4

Please sign in to comment.