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)
|
if (p == nullptr)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (children().removeOne(p))
|
return children().removeOne(p);
|
||||||
return true;
|
|
||||||
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** Deletes all children */
|
/** Deletes all children */
|
||||||
|
|
Loading…
Reference in New Issue