C#: Address review comment.

This commit is contained in:
calum
2019-01-11 16:13:04 +00:00
parent de4f592bba
commit e76eb1641a

View File

@@ -57,7 +57,7 @@ namespace Semmle.Extraction
public override bool Equals(object obj)
{
var other = obj as CachedEntity<Initializer>;
return other != null && other.GetType() == GetType() && Equals(other.symbol, symbol);
return other?.GetType() == GetType() && Equals(other.symbol, symbol);
}
public abstract TrapStackBehaviour TrapStackBehaviour { get; }