From a1a38d5087a76091f65146e022fc9c237c076720 Mon Sep 17 00:00:00 2001 From: Aurora Lahtela <24460436+AuroraLS3@users.noreply.github.com> Date: Fri, 2 Sep 2022 19:30:57 +0300 Subject: [PATCH] Fix checkstyle --- .../djrapitops/plan/utilities/logging/PluginErrorLogger.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java b/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java index c50f47e23..975053c22 100644 --- a/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java +++ b/Plan/common/src/main/java/com/djrapitops/plan/utilities/logging/PluginErrorLogger.java @@ -111,7 +111,8 @@ public class PluginErrorLogger implements ErrorLogger { } private boolean isExceptionThatShouldNotBeLogged(Throwable throwable) { - return throwable instanceof DBClosedException || (throwable.getCause() != null && isExceptionThatShouldNotBeLogged(throwable.getCause())); + return throwable instanceof DBClosedException + || throwable.getCause() != null && isExceptionThatShouldNotBeLogged(throwable.getCause()); } private void logToFile(Path errorLog, Throwable throwable, ErrorContext context, String hash) {