Skip to content

Commit

Permalink
Merge branch 'fix-client-name' of https://github.com/StackExchange/St…
Browse files Browse the repository at this point in the history
…ackExchange.Redis into fix-client-name
  • Loading branch information
mgravell committed Feb 23, 2024
2 parents cb86006 + 4c3e238 commit cfa872d
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 cfa872d

Please sign in to comment.