From bd50962794599d8776d27712fe0812237375c550 Mon Sep 17 00:00:00 2001 From: Florian Stinglmayr Date: Mon, 7 Feb 2022 16:56:38 +0100 Subject: [PATCH] fix a minor formatting bug --- BGS/GenericDiscordLog.cs | 4 ++-- BGS/NonaDiscordLog.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/BGS/GenericDiscordLog.cs b/BGS/GenericDiscordLog.cs index 191aae8..a1e9c4f 100644 --- a/BGS/GenericDiscordLog.cs +++ b/BGS/GenericDiscordLog.cs @@ -39,8 +39,8 @@ namespace EliteBGS.BGS { .ToArray() ; - if (sold == null && sold.Length > 0) { - return builder.ToString(); + if (sold == null || sold.Length <= 0) { + return ""; } foreach (SellCargo sell in sold) { diff --git a/BGS/NonaDiscordLog.cs b/BGS/NonaDiscordLog.cs index 2e5acc0..f777495 100644 --- a/BGS/NonaDiscordLog.cs +++ b/BGS/NonaDiscordLog.cs @@ -60,8 +60,8 @@ namespace EliteBGS.BGS { .ToArray() ; - if (sold == null && sold.Length > 0) { - return builder.ToString(); + if (sold == null || sold.Length <= 0) { + return ""; }