From b099b298f90074c825ba68ce73532933c7b9d901 Mon Sep 17 00:00:00 2001 From: Anton Tananaev Date: Thu, 4 Apr 2024 08:03:16 -0700 Subject: Remove extra dot --- src/main/java/org/traccar/api/resource/DeviceResource.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/main/java/org/traccar/api/resource/DeviceResource.java b/src/main/java/org/traccar/api/resource/DeviceResource.java index d7236fe2a..2edb0d16d 100644 --- a/src/main/java/org/traccar/api/resource/DeviceResource.java +++ b/src/main/java/org/traccar/api/resource/DeviceResource.java @@ -175,15 +175,15 @@ public class DeviceResource extends BaseObjectResource { private String imageExtension(String type) { switch (type) { case "image/jpeg": - return ".jpg"; + return "jpg"; case "image/png": - return ".png"; + return "png"; case "image/gif": - return ".gif"; + return "gif"; case "image/webp": - return ".webp"; + return "webp"; case "image/svg+xml": - return ".svg"; + return "svg"; default: throw new IllegalArgumentException("Unsupported image type"); } -- cgit v1.2.3