From 76f00c5a8aab0c8c63b2cd26ac25e03a89822dd9 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Wed, 16 Jun 2021 18:41:26 -0700 Subject: [PATCH] clang-tidy: simplify boolean return Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev --- taglib/ape/apeitem.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/taglib/ape/apeitem.cpp b/taglib/ape/apeitem.cpp index 45f22da4..9ba41946 100644 --- a/taglib/ape/apeitem.cpp +++ b/taglib/ape/apeitem.cpp @@ -229,9 +229,7 @@ bool APE::Item::isEmpty() const case Text: if(d->text.isEmpty()) return true; - if(d->text.size() == 1 && d->text.front().isEmpty()) - return true; - return false; + return d->text.size() == 1 && d->text.front().isEmpty(); case Binary: case Locator: return d->value.isEmpty();