From fc8a966a210c915500ad35b8dbafae620be97d4e Mon Sep 17 00:00:00 2001 From: Ben Wells Date: Wed, 26 Jul 2023 10:39:44 -0400 Subject: [PATCH] Update src/Runner.Worker/FileCommandManager.cs Co-authored-by: Cory Miller <13227161+cory-miller@users.noreply.github.com> --- src/Runner.Worker/FileCommandManager.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Runner.Worker/FileCommandManager.cs b/src/Runner.Worker/FileCommandManager.cs index 0eb7f98be..f5ae0ca87 100644 --- a/src/Runner.Worker/FileCommandManager.cs +++ b/src/Runner.Worker/FileCommandManager.cs @@ -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 CheckIfOnlyWhitespaceBetweenPositions(string str, int pos1, int pos2) + private static bool OnlyContainsWhiteSpaceBetweenPositions(string str, int pos1, int pos2) { // Check if the provided positions are valid if (pos1 < 0 || pos2 < 0 || pos1 >= str.Length || pos2 >= str.Length)