mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
code review suggestion of checking heredocIndex < equalsIndex to short circuit the 'equals in delimiter' case
This commit is contained in:
@@ -329,11 +329,11 @@ namespace GitHub.Runner.Worker
|
||||
var isHeredoc = heredocIndex >= 0 &&
|
||||
(
|
||||
equalsIndex < 0 ||
|
||||
|
||||
heredocIndex < equalsIndex ||
|
||||
(
|
||||
heredocIndex > equalsIndex &&
|
||||
OnlyContainsWhiteSpaceBetweenPositions(line, equalsIndex, heredocIndex)
|
||||
) || heredocIndex < equalsIndex
|
||||
)
|
||||
);
|
||||
|
||||
if (isHeredoc)
|
||||
|
||||
Reference in New Issue
Block a user