aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/api/resource
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-25 20:02:22 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-26 08:41:45 +1300
commit8535983fea8c09046c53f2ebf388bbf3fae594ce (patch)
treea9f60c445ea163450b8886f7988853d86088db10 /src/org/traccar/api/resource
parent1c915fa1360f416ec88f4095664a887ceea2bc15 (diff)
downloadtrackermap-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.tar.gz
trackermap-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.tar.bz2
trackermap-server-8535983fea8c09046c53f2ebf388bbf3fae594ce.zip
Clean up unnecessary code
Diffstat (limited to 'src/org/traccar/api/resource')
-rw-r--r--src/org/traccar/api/resource/AttributeResource.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/org/traccar/api/resource/AttributeResource.java b/src/org/traccar/api/resource/AttributeResource.java
index 26a1f6931..b37cbbeb2 100644
--- a/src/org/traccar/api/resource/AttributeResource.java
+++ b/src/org/traccar/api/resource/AttributeResource.java
@@ -52,9 +52,9 @@ public class AttributeResource extends ExtendedObjectResource<Attribute> {
if (result != null) {
switch (entity.getType()) {
case "number":
- return Response.ok((Number) result).build();
+ return Response.ok(result).build();
case "boolean":
- return Response.ok((Boolean) result).build();
+ return Response.ok(result).build();
default:
return Response.ok(result.toString()).build();
}