Skip to content

Commit

Permalink
Fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
Morten Telling committed Jan 22, 2024
1 parent 480a2e8 commit 0b8928d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ private int formatFiles(CommandLineOptions parameters, JavaFormatterOptions opti

private void warnIfDurationExceedsThreshold(CommandLineOptions parameters, Path path, FormatFileResult fileResult) {
if (parameters.warnOnExpensiveFileDurationMillis().isPresent()
&& parameters.warnOnExpensiveFileDurationMillis().get()
> fileResult.duration().toMillis()) {
&& fileResult.duration().toMillis()
> parameters.warnOnExpensiveFileDurationMillis().get()) {
errWriter.println(path + ": took " + fileResult.duration().toMillis() + "ms to format, "
+ "which is longer than the threshold of "
+ parameters.warnOnExpensiveFileDurationMillis().get() + "ms");
Expand Down

0 comments on commit 0b8928d

Please sign in to comment.