aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSun Howwrongbum <sun@adrenosapient.com>2016-11-24 07:53:15 +0530
committerSun Howwrongbum <sun@adrenosapient.com>2016-11-24 07:53:15 +0530
commita1ad3e264293cf58bb77992e143b0d7c1c2cef96 (patch)
tree0111db17175d52f3bc34bc26bda70c03b088b4c6
parent02f4f14d28fd2e59868f9258b2735910140486f4 (diff)
downloadtraccar-server-a1ad3e264293cf58bb77992e143b0d7c1c2cef96.tar.gz
traccar-server-a1ad3e264293cf58bb77992e143b0d7c1c2cef96.tar.bz2
traccar-server-a1ad3e264293cf58bb77992e143b0d7c1c2cef96.zip
Remove another unnecessary variable
-rw-r--r--src/org/traccar/api/resource/UserResource.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/UserResource.java b/src/org/traccar/api/resource/UserResource.java
index 5f940ebf1..678daac9b 100644
--- a/src/org/traccar/api/resource/UserResource.java
+++ b/src/org/traccar/api/resource/UserResource.java
@@ -51,9 +51,8 @@ public class UserResource extends BaseResource {
if (!Context.getPermissionsManager().isAdmin(getUserId())) {
Context.getPermissionsManager().checkRegistration(getUserId());
Context.getPermissionsManager().checkUserUpdate(getUserId(), new User(), entity);
- int deviceLimit = Context.getConfig().getInteger("users.defaultDeviceLimit");
+ entity.setDeviceLimit(Context.getConfig().getInteger("users.defaultDeviceLimit"));
int expirationDays = Context.getConfig().getInteger("users.defaultExpirationDays");
- entity.setDeviceLimit(deviceLimit);
if (expirationDays > 0) {
entity.setExpirationTime(
new Date(System.currentTimeMillis() + (long) expirationDays * 24 * 3600 * 1000));