提交 8ba243c0 编写于 作者: J Jared Parsons

PR feedback

上级 29b990e5
......@@ -30,7 +30,7 @@ public string ToString(string? format, IFormatProvider? formatProvider)
{
if (_targetResourceId != null)
{
return CodeAnalysisResources.ResourceManager.GetString(_targetResourceId, formatProvider as System.Globalization.CultureInfo) ?? "";
return CodeAnalysisResources.ResourceManager.GetString(_targetResourceId, formatProvider as System.Globalization.CultureInfo) ?? string.Empty;
}
return string.Empty;
......
......@@ -33,7 +33,7 @@ private void Resize()
int firstDead = -1;
for (int i = 0; i < _items.Length; i++)
{
if (!_items[i].TryGetTarget(out var _))
if (!_items[i].TryGetTarget(out _))
{
if (firstDead == -1)
{
......@@ -112,8 +112,7 @@ private void Compact(int firstDead, WeakReference<T>[] result)
{
var item = _items[i];
T? target;
if (item.TryGetTarget(out target))
if (item.TryGetTarget(out _))
{
result[j++] = item;
}
......
......@@ -205,7 +205,7 @@ protected virtual string DumperString(object o)
return symbol.ToDisplayString(SymbolDisplayFormat.TestFormat);
}
return o?.ToString() ?? "";
return o.ToString() ?? "";
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册