Skip to content

Commit

Permalink
Update src/StackExchange.Redis/ServerEndPoint.cs
Browse files Browse the repository at this point in the history
Co-authored-by: Philo <[email protected]>
  • Loading branch information
mgravell and philon-msft authored Feb 23, 2024
1 parent 0ad802b commit 4c3e238
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StackExchange.Redis/ServerEndPoint.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1094,7 +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(), "-");
}
Expand Down

0 comments on commit 4c3e238

Please sign in to comment.