mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-13 15:42:50 +08:00
Fix error SA1300 in full property creation
This commit is contained in:
parent
156d254208
commit
322ed2efbb
@ -7,6 +7,7 @@ namespace Spectre.Console;
|
||||
public sealed class Tree : Renderable, IHasTreeNodes
|
||||
{
|
||||
private readonly TreeNode _root;
|
||||
private bool _expanded = true;
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the tree style.
|
||||
@ -23,7 +24,6 @@ public sealed class Tree : Renderable, IHasTreeNodes
|
||||
/// </summary>
|
||||
public List<TreeNode> Nodes => _root.Nodes;
|
||||
|
||||
private bool _expanded { get; set; } = true;
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether or not the tree is expanded or not.
|
||||
/// </summary>
|
||||
@ -36,7 +36,6 @@ public sealed class Tree : Renderable, IHasTreeNodes
|
||||
_root.Expand(value);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the <see cref="Tree"/> class.
|
||||
/// </summary>
|
||||
|
Loading…
x
Reference in New Issue
Block a user