From b4fefd6d0ef1e03db91ec19b4fc03fe3f26ea439 Mon Sep 17 00:00:00 2001 From: Marc Gravell Date: Fri, 23 Feb 2024 16:50:25 +0000 Subject: [PATCH] merge fail --- src/StackExchange.Redis/ServerEndPoint.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/StackExchange.Redis/ServerEndPoint.cs b/src/StackExchange.Redis/ServerEndPoint.cs index 88eea3592..a5471b5d5 100644 --- a/src/StackExchange.Redis/ServerEndPoint.cs +++ b/src/StackExchange.Redis/ServerEndPoint.cs @@ -1094,10 +1094,7 @@ private void SetConfig(ref T field, T value, [CallerMemberName] string? calle } } internal static string ClientInfoSanitize(string? value) - => string.IsNullOrWhiteSpace(value) ? String.Empty : nameSanitizer.Replace(value!.Trim(), "-"); - if (string.IsNullOrWhiteSpace(value)) return ""; - return nameSanitizer.Replace(value!.Trim(), "-"); - } + => string.IsNullOrWhiteSpace(value) ? "" : nameSanitizer.Replace(value!.Trim(), "-"); private void ClearMemoized() {