aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org/traccar/web
diff options
context:
space:
mode:
authorjcardus <asklocation.net@gmail.com>2021-07-06 18:45:59 +0100
committerjcardus <asklocation.net@gmail.com>2021-07-06 18:45:59 +0100
commitc82a19b1943f8784d5c10ece50ffab06d0596020 (patch)
treeeeca2ba16ce02eef65e8c3bf069333c51008475b /src/main/java/org/traccar/web
parent41857253c39a9c207b8288b02e09317d1c0f5628 (diff)
downloadtrackermap-server-c82a19b1943f8784d5c10ece50ffab06d0596020.tar.gz
trackermap-server-c82a19b1943f8784d5c10ece50ffab06d0596020.tar.bz2
trackermap-server-c82a19b1943f8784d5c10ece50ffab06d0596020.zip
inline if
Diffstat (limited to 'src/main/java/org/traccar/web')
-rw-r--r--src/main/java/org/traccar/web/WebServer.java3
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();