From c82a19b1943f8784d5c10ece50ffab06d0596020 Mon Sep 17 00:00:00 2001 From: jcardus Date: Tue, 6 Jul 2021 18:45:59 +0100 Subject: inline if --- src/main/java/org/traccar/web/WebServer.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/org/traccar/web/WebServer.java b/src/main/java/org/traccar/web/WebServer.java index 01ccf80bc..0157c075c 100644 --- a/src/main/java/org/traccar/web/WebServer.java +++ b/src/main/java/org/traccar/web/WebServer.java @@ -178,8 +178,7 @@ public class WebServer { } private void initSessionConfig(Config config, ServletContextHandler servletHandler) { - boolean sessionPersisted = config.getBoolean(Keys.WEB_SESSION_PERSISTED); - if (sessionPersisted) { + if (config.getBoolean(Keys.WEB_SESSION_PERSISTED)) { DatabaseAdaptor databaseAdaptor = new DatabaseAdaptor(); databaseAdaptor.setDatasource(Context.getDataManager().getDataSource()); JDBCSessionDataStoreFactory jdbcSessionDataStoreFactory = new JDBCSessionDataStoreFactory(); -- cgit v1.2.3