summaryrefslogtreecommitdiff
path: root/src/db/plugins
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2020-01-31 21:25:24 -0800
committerRosen Penev <rosenp@gmail.com>2020-02-01 19:47:47 -0800
commitafb29942b07a2fd217d802495bc4f3f3f320db45 (patch)
tree44c8985d8be987dbf9b31038f8aa53b2293b6af6 /src/db/plugins
parentbc6eca2115d8d333eed61d23a01958926bbd7a9c (diff)
[clang-tidy] simplify boolean expressions
Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com>
Diffstat (limited to 'src/db/plugins')
-rw-r--r--src/db/plugins/ProxyDatabasePlugin.cxx5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/db/plugins/ProxyDatabasePlugin.cxx b/src/db/plugins/ProxyDatabasePlugin.cxx
index c3dfae850..c393fea72 100644
--- a/src/db/plugins/ProxyDatabasePlugin.cxx
+++ b/src/db/plugins/ProxyDatabasePlugin.cxx
@@ -863,10 +863,7 @@ IsFilterSupported(const ISongFilter &f) noexcept
return true;
const auto tag = Convert(t->GetTagType());
- if (tag == MPD_TAG_COUNT)
- return false;
-
- return true;
+ return tag != MPD_TAG_COUNT;
} else if (auto u = dynamic_cast<const UriSongFilter *>(&f)) {
if (u->IsNegated())
// TODO implement