mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
C#: Address review comment.
This commit is contained in:
@@ -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; }
|
||||
|
||||
Reference in New Issue
Block a user