Skip to content

Commit

Permalink
fix checkstyle errors
Browse files Browse the repository at this point in the history
  • Loading branch information
fupgang committed Mar 1, 2024
1 parent 66261c7 commit 56be5c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/de/siegmar/logbackgelf/GelfEncoder.java
Original file line number Diff line number Diff line change
Expand Up @@ -439,8 +439,8 @@ protected String normalizeShortMessage(final String shortMessage) {
}

private String sanitizeShortMessage(final String sanitizedShortMessage) {
String stripped = sanitizedShortMessage.strip();
if(getMaxShortMessageLength() != 0 && stripped.length() > getMaxShortMessageLength()) {
final String stripped = sanitizedShortMessage.strip();
if (getMaxShortMessageLength() != 0 && stripped.length() > getMaxShortMessageLength()) {
return stripped.substring(0, getMaxShortMessageLength());
} else {
return stripped;
Expand Down

0 comments on commit 56be5c2

Please sign in to comment.