aboutsummaryrefslogtreecommitdiff
path: root/src/main/java
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-07-19 07:46:04 -0700
committerAnton Tananaev <anton@traccar.org>2023-07-19 07:46:04 -0700
commit840d5600c69839e9be7a241d69005f322dfef124 (patch)
tree858dad5effdba69213a8b9f166c10ef953fa9316 /src/main/java
parentdcef13b1fc7cf052463e11532365b3ad1f948b99 (diff)
downloadtrackermap-server-840d5600c69839e9be7a241d69005f322dfef124.tar.gz
trackermap-server-840d5600c69839e9be7a241d69005f322dfef124.tar.bz2
trackermap-server-840d5600c69839e9be7a241d69005f322dfef124.zip
Remove unnecessary checks
Diffstat (limited to 'src/main/java')
-rw-r--r--src/main/java/org/traccar/model/Device.java2
-rw-r--r--src/main/java/org/traccar/model/Driver.java2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/model/Device.java b/src/main/java/org/traccar/model/Device.java
index c259e1413..e07815976 100644
--- a/src/main/java/org/traccar/model/Device.java
+++ b/src/main/java/org/traccar/model/Device.java
@@ -53,7 +53,7 @@ public class Device extends GroupedModel implements Disableable, Schedulable {
}
public void setUniqueId(String uniqueId) {
- this.uniqueId = uniqueId != null ? uniqueId.trim() : null;
+ this.uniqueId = uniqueId.trim();
}
public static final String STATUS_UNKNOWN = "unknown";
diff --git a/src/main/java/org/traccar/model/Driver.java b/src/main/java/org/traccar/model/Driver.java
index 2689c67f2..ca5714e51 100644
--- a/src/main/java/org/traccar/model/Driver.java
+++ b/src/main/java/org/traccar/model/Driver.java
@@ -38,7 +38,7 @@ public class Driver extends ExtendedModel {
}
public void setUniqueId(String uniqueId) {
- this.uniqueId = uniqueId != null ? uniqueId.trim() : null;
+ this.uniqueId = uniqueId.trim();
}
}