Skip to content

Commit f2150fd

Browse files
committed
Make maxRecursion ctor argument nullable again (for bwc)
1 parent f787b8d commit f2150fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Nest/Mapping/Visitor/PropertyWalker.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ public class PropertyWalker
1212
private readonly int _maxRecursion;
1313
private readonly ConcurrentDictionary<Type, int> _seenTypes;
1414

15-
public PropertyWalker(Type type, IPropertyVisitor visitor, int maxRecursion)
15+
public PropertyWalker(Type type, IPropertyVisitor visitor, int maxRecursion = 0)
1616
{
1717
_type = GetUnderlyingType(type);
1818
_visitor = visitor ?? new NoopPropertyVisitor();

0 commit comments

Comments
 (0)