Skip to content

Commit

Permalink
[Code style] Remove redundant method call
Browse files Browse the repository at this point in the history
  • Loading branch information
NEZNAMY committed Dec 18, 2024
1 parent 3e2906c commit 0762a5e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions shared/src/main/java/me/neznamy/tab/shared/ErrorManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import lombok.Getter;
import me.neznamy.tab.api.event.TabEvent;
import me.neznamy.tab.shared.chat.EnumChatFormat;
import me.neznamy.tab.shared.chat.TabComponent;
import me.neznamy.tab.shared.platform.TabPlayer;
import org.jetbrains.annotations.NotNull;
Expand Down Expand Up @@ -116,7 +115,7 @@ public synchronized void printError(@Nullable String message, @NotNull List<Stri
try (BufferedWriter buf = new BufferedWriter(new FileWriter(file, true))) {
if (message != null) {
if (file.length() < TabConstants.MAX_LOG_SIZE)
buf.write(dateFormat.format(new Date()) + "[TAB v" + TabConstants.PLUGIN_VERSION + "] " + EnumChatFormat.decolor(message) + System.lineSeparator());
buf.write(dateFormat.format(new Date()) + "[TAB v" + TabConstants.PLUGIN_VERSION + "] " + message + System.lineSeparator());
if (intoConsoleToo || TAB.getInstance().getConfiguration().getConfig().isDebugMode())
TAB.getInstance().getPlatform().logWarn(TabComponent.fromColoredText(message));
}
Expand Down

0 comments on commit 0762a5e

Please sign in to comment.