Skip to content

Commit e855c2d

Browse files
committed
Update documentation
1 parent 4a1dfa7 commit e855c2d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/code-standards/elastic-client.asciidoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ var fluentParametersNotNamedSelector =
4242
from m in typeof(IElasticClient).GetMethods()
4343
from p in m.GetParameters()
4444
where p.ParameterType.BaseType() == typeof(MulticastDelegate)
45-
where !p.Name.Equals("selector")
46-
select $"method '{nameof(IElasticClient)}.{m.Name}' should have parameter name of 'selector' but has a name of '{p.Name}'";
45+
where !p.Name.Equals("selector") && !p.Name.Equals("mapper")
46+
select $"method '{nameof(IElasticClient)}.{m.Name}' should have parameter name of 'selector' or 'mapper' but has a name of '{p.Name}'";
4747
fluentParametersNotNamedSelector.Should().BeEmpty();
4848
----
4949

0 commit comments

Comments
 (0)