diff options
author | jcardus <asklocation.net@gmail.com> | 2021-07-06 18:45:59 +0100 |
---|---|---|
committer | jcardus <asklocation.net@gmail.com> | 2021-07-06 18:45:59 +0100 |
commit | c82a19b1943f8784d5c10ece50ffab06d0596020 (patch) | |
tree | eeca2ba16ce02eef65e8c3bf069333c51008475b /src/main/java | |
parent | 41857253c39a9c207b8288b02e09317d1c0f5628 (diff) | |
download | trackermap-server-c82a19b1943f8784d5c10ece50ffab06d0596020.tar.gz trackermap-server-c82a19b1943f8784d5c10ece50ffab06d0596020.tar.bz2 trackermap-server-c82a19b1943f8784d5c10ece50ffab06d0596020.zip |
inline if
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/web/WebServer.java | 3 |
1 files changed, 1 insertions, 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(); |