mirror of
https://github.com/actions/runner.git
synced 2025-12-10 20:36:49 +00:00
Remove unused parameter
AllowExpressions was always false
This commit is contained in:
@@ -325,16 +325,10 @@ namespace GitHub.DistributedTask.Pipelines.ObjectTemplating
|
|||||||
|
|
||||||
internal static List<KeyValuePair<String, JobContainer>> ConvertToJobServiceContainers(
|
internal static List<KeyValuePair<String, JobContainer>> ConvertToJobServiceContainers(
|
||||||
TemplateContext context,
|
TemplateContext context,
|
||||||
TemplateToken services,
|
TemplateToken services)
|
||||||
bool allowExpressions = false)
|
|
||||||
{
|
{
|
||||||
var result = new List<KeyValuePair<String, JobContainer>>();
|
var result = new List<KeyValuePair<String, JobContainer>>();
|
||||||
|
|
||||||
if (allowExpressions && services.Traverse().Any(x => x is ExpressionToken))
|
|
||||||
{
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
var servicesMapping = services.AssertMapping("services");
|
var servicesMapping = services.AssertMapping("services");
|
||||||
|
|
||||||
foreach (var servicePair in servicesMapping)
|
foreach (var servicePair in servicesMapping)
|
||||||
|
|||||||
Reference in New Issue
Block a user