Skip to content

Commit 4c3e238

Browse files
Update src/StackExchange.Redis/ServerEndPoint.cs
Co-authored-by: Philo <philon@microsoft.com>
1 parent 0ad802b commit 4c3e238

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/StackExchange.Redis/ServerEndPoint.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ private void SetConfig<T>(ref T field, T value, [CallerMemberName] string? calle
10941094
}
10951095
}
10961096
internal static string ClientInfoSanitize(string? value)
1097-
{
1097+
=> string.IsNullOrWhiteSpace(value) ? String.Empty : nameSanitizer.Replace(value!.Trim(), "-");
10981098
if (string.IsNullOrWhiteSpace(value)) return "";
10991099
return nameSanitizer.Replace(value!.Trim(), "-");
11001100
}

0 commit comments

Comments
 (0)