aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/org
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/org')
-rw-r--r--src/main/java/org/traccar/notification/TextTemplateFormatter.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/main/java/org/traccar/notification/TextTemplateFormatter.java b/src/main/java/org/traccar/notification/TextTemplateFormatter.java
index 6a95628f0..b7058c824 100644
--- a/src/main/java/org/traccar/notification/TextTemplateFormatter.java
+++ b/src/main/java/org/traccar/notification/TextTemplateFormatter.java
@@ -74,8 +74,7 @@ public final class TextTemplateFormatter {
public static NotificationMessage formatMessage(VelocityContext velocityContext, String name, String templatePath) {
StringWriter writer = new StringWriter();
getTemplate(name, templatePath).merge(velocityContext, writer);
- String formattedMessage = writer.toString();
- return new NotificationMessage((String) velocityContext.get("subject"), formattedMessage);
+ return new NotificationMessage((String) velocityContext.get("subject"), writer.toString());
}
}