mirror of
https://github.com/actions/runner.git
synced 2025-12-12 15:13:30 +00:00
syntax errors
This commit is contained in:
@@ -407,7 +407,7 @@ namespace GitHub.Runner.Worker
|
|||||||
// Ensure pos1 is always the smaller position
|
// Ensure pos1 is always the smaller position
|
||||||
if (pos2 < pos1)
|
if (pos2 < pos1)
|
||||||
{
|
{
|
||||||
throw new ArgumentException("OnlyContainsWhiteSpaceBetweenPositions: pos1 must be less than or equal to pos2.")
|
throw new ArgumentException("OnlyContainsWhiteSpaceBetweenPositions: pos1 must be less than or equal to pos2.");
|
||||||
}
|
}
|
||||||
|
|
||||||
for (int i = pos1 + 1; i < pos2; i++)
|
for (int i = pos1 + 1; i < pos2; i++)
|
||||||
|
|||||||
@@ -241,9 +241,9 @@ namespace GitHub.Runner.Common.Tests.Worker
|
|||||||
"MY_KEY_5=abc << def",
|
"MY_KEY_5=abc << def",
|
||||||
"MY_KEY_6= <<EOF",
|
"MY_KEY_6= <<EOF",
|
||||||
"white space test",
|
"white space test",
|
||||||
"EOF"
|
"EOF",
|
||||||
"MY_KEY_7 << =EOF="
|
"MY_KEY_7 << =EOF=",
|
||||||
"abc"
|
"abc",
|
||||||
"=EOF="
|
"=EOF="
|
||||||
};
|
};
|
||||||
TestUtil.WriteContent(stateFile, content);
|
TestUtil.WriteContent(stateFile, content);
|
||||||
|
|||||||
Reference in New Issue
Block a user