From 44607e10d7f132833ed90c996266841abd9f1e8e Mon Sep 17 00:00:00 2001 From: RisaDev <151885272+RisaDev@users.noreply.github.com> Date: Mon, 8 Jan 2024 05:31:55 +0300 Subject: [PATCH] Code style fix --- .../Core/Extensions/StringExtensions.cs | 37 +++++++++---------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/CustomizePlus/Core/Extensions/StringExtensions.cs b/CustomizePlus/Core/Extensions/StringExtensions.cs index c77a3fb..312e980 100644 --- a/CustomizePlus/Core/Extensions/StringExtensions.cs +++ b/CustomizePlus/Core/Extensions/StringExtensions.cs @@ -1,32 +1,31 @@ using Dalamud.Utility; -namespace CustomizePlus.Core.Extensions +namespace CustomizePlus.Core.Extensions; + +internal static class StringExtensions { - internal static class StringExtensions + /// + /// Incognify string. Usually used for logging character names and stuff. Does nothing in debug build. + /// + public static string Incognify(this string str) { - /// - /// Incognify string. Usually used for logging character names and stuff. Does nothing in debug build. - /// - public static string Incognify(this string str) - { - if (str.IsNullOrWhitespace()) - return str; + if (str.IsNullOrWhitespace()) + return str; #if !INCOGNIFY_STRINGS - return str; + return str; #endif - if (str.Contains(" ")) - { - var split = str.Split(' '); + if (str.Contains(" ")) + { + var split = str.Split(' '); - if (split.Length > 2) - return $"{str[..5]}..."; + if (split.Length > 2) + return $"{str[..5]}..."; - return $"{split[0][0]}.{split[1][0]}"; - } - - return $"{str[..5]}..."; + return $"{split[0][0]}.{split[1][0]}"; } + + return $"{str[..5]}..."; } }