We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 09ec313 commit 88c576fCopy full SHA for 88c576f
csharp/extractor/Semmle.Extraction.CSharp/Entities/Types/TupleType.cs
@@ -45,10 +45,9 @@ public override void Populate(TextWriter trapFile)
45
trapFile.tuple_underlying_type(this, underlyingType);
46
47
var index = 0;
48
- foreach (var element in TupleElements)
+ foreach (var element in TupleElements.Where(e => e is not null))
49
{
50
- if (element is not null)
51
- trapFile.tuple_element(this, index++, element);
+ trapFile.tuple_element(this, index++, element);
52
}
53
54
// Note: symbol.Locations seems to be very inconsistent
0 commit comments