Apply suggestions from code review

Co-authored-by: Tom Hvitved <hvitved@github.com>
This commit is contained in:
Tamás Vajk
2024-01-31 09:46:57 +01:00
committed by GitHub
parent dabe63ce8b
commit 1d56a8a924

View File

@@ -53,8 +53,7 @@ namespace Semmle.Extraction.CSharp.Entities
var rspArgs = CommandLineParser.SplitCommandLineIntoArguments(rspFileContent, removeHashComments: true);
foreach (var rspArg in rspArgs)
{
trapFile.compilation_expanded_args(this, expandedIndex, rspArg);
expandedIndex++;
trapFile.compilation_expanded_args(this, expandedIndex++, rspArg);
}
}
catch (Exception exc)
@@ -64,8 +63,7 @@ namespace Semmle.Extraction.CSharp.Entities
}
else
{
trapFile.compilation_expanded_args(this, expandedIndex, arg);
expandedIndex++;
trapFile.compilation_expanded_args(this, expandedIndex++, arg);
}
}