提交 1cd7c1f5 编写于 作者: _ _aLfa_

Optimize ternary condition return


Commit migrated from https://github.com/dotnet/corefx/commit/3236ea8581190d675fcbc141e356a0321851b0b0
上级 dfae2f64
......@@ -1021,7 +1021,7 @@ internal CachedCodeEntryKey(RegexOptions options, string cultureKey, string patt
public override bool Equals(object obj)
{
return obj is CachedCodeEntryKey ? Equals((CachedCodeEntryKey)obj) : false;
return obj is CachedCodeEntryKey && Equals((CachedCodeEntryKey)obj);
}
public bool Equals(CachedCodeEntryKey other)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册