Skip to content

Commit

Permalink
merge fail
Browse files Browse the repository at this point in the history
  • Loading branch information
mgravell committed Feb 23, 2024
1 parent cfa872d commit b4fefd6
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/StackExchange.Redis/ServerEndPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,10 +1094,7 @@ private void SetConfig<T>(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()
{
Expand Down

0 comments on commit b4fefd6

Please sign in to comment.