Update FileCommandManager.cs

This commit is contained in:
Ben Wells
2023-07-21 16:05:30 -04:00
committed by GitHub
parent 2796fcdd87
commit 76e2904c63

View File

@@ -396,7 +396,7 @@ namespace GitHub.Runner.Worker
}
// accepts a string, two indexes, and returns true if only whitespace chars exist between those two indexes (non-inclusive)
private static bool CheckIfOnlyWhitespaceBetweenSymbols(string str, int pos1, int pos2)
private static bool CheckIfOnlyWhitespaceBetweenPositions(string str, int pos1, int pos2)
{
// Check if the provided positions are valid
if (pos1 < 0 || pos2 < 0 || pos1 >= str.Length || pos2 >= str.Length)