From f77ec1eba3896b8157a23b5a947a62c03773da1a Mon Sep 17 00:00:00 2001
From: Pavel Vetokhin
Date: Sun, 18 Feb 2024 12:30:06 +0300
Subject: [PATCH] Fix linter issues
---
.../java/smecalculus/bezmen/configuration/ClientProps.java | 5 +----
.../smecalculus/bezmen/messaging/BezmenClientJavaHttp.java | 5 +----
2 files changed, 2 insertions(+), 8 deletions(-)
diff --git a/lib/messaging-client/src/main/java/smecalculus/bezmen/configuration/ClientProps.java b/lib/messaging-client/src/main/java/smecalculus/bezmen/configuration/ClientProps.java
index d60d35f8..4f01dc90 100644
--- a/lib/messaging-client/src/main/java/smecalculus/bezmen/configuration/ClientProps.java
+++ b/lib/messaging-client/src/main/java/smecalculus/bezmen/configuration/ClientProps.java
@@ -2,7 +2,4 @@
import lombok.NonNull;
-public record ClientProps(
- @NonNull String host,
- @NonNull Integer port
-) {}
+public record ClientProps(@NonNull String host, @NonNull Integer port) {}
diff --git a/lib/messaging-client/src/main/java/smecalculus/bezmen/messaging/BezmenClientJavaHttp.java b/lib/messaging-client/src/main/java/smecalculus/bezmen/messaging/BezmenClientJavaHttp.java
index 99bded40..7d593192 100644
--- a/lib/messaging-client/src/main/java/smecalculus/bezmen/messaging/BezmenClientJavaHttp.java
+++ b/lib/messaging-client/src/main/java/smecalculus/bezmen/messaging/BezmenClientJavaHttp.java
@@ -50,10 +50,7 @@ public RegistrationResponse register(RegistrationRequest request) {
public boolean isReady() {
URI uri = URI.create("http://" + props.host() + ":" + props.port() + "/actuator/health");
try {
- var httpRequest = HttpRequest.newBuilder()
- .uri(uri)
- .GET()
- .build();
+ var httpRequest = HttpRequest.newBuilder().uri(uri).GET().build();
var httpResponse = client.send(httpRequest, BodyHandlers.discarding());
return httpResponse.statusCode() == 200;
} catch (IOException | InterruptedException e) {