From ae739c2b461e0addcd94ace93f7e31bed943c263 Mon Sep 17 00:00:00 2001 From: felkerk Date: Fri, 23 Jun 2023 09:55:26 -0400 Subject: [PATCH] fixing code smells --- .../circulation/resources/CirculationRulesReloadResource.java | 1 - .../folio/circulation/rules/cache/CirculationRulesCache.java | 3 ++- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/folio/circulation/resources/CirculationRulesReloadResource.java b/src/main/java/org/folio/circulation/resources/CirculationRulesReloadResource.java index 87c4faa860..9c462ec2cf 100644 --- a/src/main/java/org/folio/circulation/resources/CirculationRulesReloadResource.java +++ b/src/main/java/org/folio/circulation/resources/CirculationRulesReloadResource.java @@ -8,7 +8,6 @@ import org.apache.logging.log4j.Logger; import org.folio.circulation.rules.cache.CirculationRulesCache; import org.folio.circulation.support.Clients; -import org.folio.circulation.support.ServerErrorFailure; import org.folio.circulation.support.http.server.NoContentResponse; import org.folio.circulation.support.http.server.WebContext; import org.folio.circulation.support.results.CommonFailures; diff --git a/src/main/java/org/folio/circulation/rules/cache/CirculationRulesCache.java b/src/main/java/org/folio/circulation/rules/cache/CirculationRulesCache.java index ee6984cf61..2188d0f7d6 100644 --- a/src/main/java/org/folio/circulation/rules/cache/CirculationRulesCache.java +++ b/src/main/java/org/folio/circulation/rules/cache/CirculationRulesCache.java @@ -60,7 +60,8 @@ private static String getRulesAsText(Response response, String tenantId) { log.info("Fetched rules for tenant {}", tenantId); final var circulationRules = new JsonObject(response.getBody()); - log.info("circulationRules = {}", circulationRules.encodePrettily()); + var encodeRules = circulationRules.encodePrettily(); + log.info("circulationRules = {}", encodeRules); return circulationRules.getString("rulesAsText"); }