Skip to content

Commit e76eb16

Browse files
committed
C#: Address review comment.
1 parent de4f592 commit e76eb16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

csharp/extractor/Semmle.Extraction/Symbol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ protected void WithDuplicationGuard(System.Action a, IEntity location)
5757
public override bool Equals(object obj)
5858
{
5959
var other = obj as CachedEntity<Initializer>;
60-
return other != null && other.GetType() == GetType() && Equals(other.symbol, symbol);
60+
return other?.GetType() == GetType() && Equals(other.symbol, symbol);
6161
}
6262

6363
public abstract TrapStackBehaviour TrapStackBehaviour { get; }

0 commit comments

Comments
 (0)