Simplify if-return code a bit.
This commit is contained in:
parent
a1ebb5205b
commit
56533022cb
|
@ -119,10 +119,7 @@ bool PartitionNode::remove(Partition* p)
|
|||
if (p == nullptr)
|
||||
return false;
|
||||
|
||||
if (children().removeOne(p))
|
||||
return true;
|
||||
|
||||
return false;
|
||||
return children().removeOne(p);
|
||||
}
|
||||
|
||||
/** Deletes all children */
|
||||
|
|
Loading…
Reference in New Issue