From 56533022cb4de22cbdbc750fcc8ec2794b55a909 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrius=20=C5=A0tikonas?= Date: Wed, 31 Aug 2016 20:14:21 +0100 Subject: [PATCH] Simplify if-return code a bit. --- src/core/partitionnode.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/partitionnode.cpp b/src/core/partitionnode.cpp index 03fe97a..8c9b5da 100644 --- a/src/core/partitionnode.cpp +++ b/src/core/partitionnode.cpp @@ -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 */