[clang-tidy] Simplify boolean expressions
Found with readability-simplify-boolean-expr Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
committed by
Paul Beckingham
parent
13e1bf7204
commit
51870dff34
@@ -1438,7 +1438,7 @@ int TDB2::id (const std::string& uuid)
|
||||
bool TDB2::verifyUniqueUUID (const std::string& uuid)
|
||||
{
|
||||
pending.get_tasks ();
|
||||
return pending.id (uuid) != 0 ? false : true;
|
||||
return pending.id (uuid) == 0;
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
Reference in New Issue
Block a user