This commit is contained in:
Alexey Golub
2020-04-22 20:44:14 +03:00
parent 6a430cdc76
commit dc79813ad7
13 changed files with 227 additions and 263 deletions

View File

@@ -4,7 +4,7 @@ namespace DiscordChatExporter.Domain.Internal
{
internal static class StringExtensions
{
public static StringBuilder AppendLineIfNotEmpty(this StringBuilder builder, string value) =>
public static StringBuilder AppendLineIfNotNullOrWhiteSpace(this StringBuilder builder, string? value) =>
!string.IsNullOrWhiteSpace(value) ? builder.AppendLine(value) : builder;
public static StringBuilder Trim(this StringBuilder builder)