Fix error SA1300 in full property creation

This commit is contained in:
Davide Piccinini 2023-06-21 21:43:21 +02:00 committed by Patrik Svensson
parent 156d254208
commit 322ed2efbb

View File

@ -7,6 +7,7 @@ namespace Spectre.Console;
public sealed class Tree : Renderable, IHasTreeNodes public sealed class Tree : Renderable, IHasTreeNodes
{ {
private readonly TreeNode _root; private readonly TreeNode _root;
private bool _expanded = true;
/// <summary> /// <summary>
/// Gets or sets the tree style. /// Gets or sets the tree style.
@ -23,7 +24,6 @@ public sealed class Tree : Renderable, IHasTreeNodes
/// </summary> /// </summary>
public List<TreeNode> Nodes => _root.Nodes; public List<TreeNode> Nodes => _root.Nodes;
private bool _expanded { get; set; } = true;
/// <summary> /// <summary>
/// Gets or sets a value indicating whether or not the tree is expanded or not. /// Gets or sets a value indicating whether or not the tree is expanded or not.
/// </summary> /// </summary>
@ -36,7 +36,6 @@ public sealed class Tree : Renderable, IHasTreeNodes
_root.Expand(value); _root.Expand(value);
} }
} }
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="Tree"/> class. /// Initializes a new instance of the <see cref="Tree"/> class.
/// </summary> /// </summary>