Simplify if-return code a bit.

This commit is contained in:
Andrius Štikonas 2016-08-31 20:14:21 +01:00
parent a1ebb5205b
commit 56533022cb
1 changed files with 1 additions and 4 deletions

View File

@ -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 */