Skip to content

Commit 70f87f3

Browse files
committed
Avoid allocation in fluent assignment
1 parent 817b28c commit 70f87f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Elasticsearch.Net/Configuration/ConnectionConfiguration.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public T BasicAuthentication(string userName, string password) =>
387387
/// verbatim.
388388
/// </summary>
389389
/// <param name="predicate">Return true if you want the node to be used for API calls</param>
390-
public T NodePredicate(Func<Node, bool> predicate) => Assign(predicate ?? DefaultNodePredicate, (a, v) => a._nodePredicate = predicate);
390+
public T NodePredicate(Func<Node, bool> predicate) => Assign(predicate ?? DefaultNodePredicate, (a, v) => a._nodePredicate = v);
391391

392392
/// <summary>
393393
/// Turns on settings that aid in debugging like DisableDirectStreaming() and PrettyJson()

0 commit comments

Comments
 (0)