diff --git a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java index 72153e6c46..347fa01cb9 100644 --- a/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java +++ b/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/web/reactive/client/WebClientExchangeTags.java @@ -88,7 +88,7 @@ public final class WebClientExchangeTags { if (response != null) { return Tag.of("status", String.valueOf(response.rawStatusCode())); } - else if (throwable != null) { + if (throwable != null) { return (throwable instanceof IOException) ? IO_ERROR : CLIENT_ERROR; } return CLIENT_ERROR;