Skip to content

Commit cc13485

Browse files
committed
PS: Don't double increment when looping through if clauses.
1 parent e55c718 commit cc13485

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

powershell/extractor/Semmle.Extraction.PowerShell/Entities/IfStatementEntity.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ public override void Populate(TextWriter trapFile)
2121
var item1 = EntityConstructor.ConstructAppropriateEntity(PowerShellContext, Fragment.Clauses[index].Item1);
2222
var item2 = EntityConstructor.ConstructAppropriateEntity(PowerShellContext, Fragment.Clauses[index].Item2);
2323
trapFile.if_statement_clause(this, index, item1, item2);
24-
index++;
2524
}
2625
if (Fragment.ElseClause is not null)
2726
{

0 commit comments

Comments
 (0)