mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-09-08 06:10:36 +02:00
[clang-tidy] Use .empty instead of comparing size
Found with readability-container-size-empty Signed-off-by: Rosen Penev <rosenp@gmail.com>
This commit is contained in:
parent
d43fa66489
commit
a331cceded
18 changed files with 132 additions and 132 deletions
|
@ -41,7 +41,7 @@ bool nag (Task& task)
|
|||
return false;
|
||||
|
||||
auto msg = Context::getContext ().config.get ("nag");
|
||||
if (msg != "")
|
||||
if (!msg.empty())
|
||||
{
|
||||
// Scan all pending, non-recurring tasks.
|
||||
auto pending = Context::getContext ().tdb2.pending.get_tasks ();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue