Sidebar.Branch: Fix compiler warning, improve code style
This commit is contained in:
parent
4404496ad4
commit
c8aeeec67b
1 changed files with 4 additions and 5 deletions
|
|
@ -63,11 +63,10 @@ public class Sidebar.Branch : Geary.BaseObject {
|
|||
|
||||
public void add_child(Node child) {
|
||||
child.parent = this;
|
||||
|
||||
if (children == null)
|
||||
children = new Gee.TreeSet<Node>(comparator_wrapper);
|
||||
|
||||
bool added = children.add(child);
|
||||
if (this.children == null) {
|
||||
this.children = new Gee.TreeSet<Node>(comparator_wrapper);
|
||||
}
|
||||
this.children.add(child);
|
||||
}
|
||||
|
||||
public void remove_child(Node child) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue