Misc cleanup
Some checks failed
mkdocs / deploy (push) Has been cancelled

This commit is contained in:
Antonio SJ Musumeci 2026-03-01 14:47:50 -06:00 • committed by trapexit
parent 075a8a6548
commit c66c68b137
6 changed files with 23 additions and 23 deletions

View file

@ -71,7 +71,7 @@ _action(const Branches::Ptr &branches_,
total = 1;
}
if(obranch == nullptr)
if(!obranch)
{
best_used = used;
best_total = total;
@ -89,7 +89,7 @@ _action(const Branches::Ptr &branches_,
obranch = &branch;
}
if(obranch == nullptr)
if(!obranch)
return -error;
paths_.emplace_back(obranch);
@ -132,7 +132,7 @@ _search(const Branches::Ptr &branches_,
total = 1;
}
if(obranch == nullptr)
if(!obranch)
{
best_used = used;
best_total = total;
@ -150,7 +150,7 @@ _search(const Branches::Ptr &branches_,
obranch = &branch;
}
if(obranch == nullptr)
if(!obranch)
return -ENOENT;
paths_.emplace_back(obranch);
@ -195,7 +195,7 @@ _create(const Branches::Ptr &branches_,
total = 1;
}
if(obranch == nullptr)
if(!obranch)
{
best_used = used;
best_total = total;
@ -213,7 +213,7 @@ _create(const Branches::Ptr &branches_,
obranch = &branch;
}
if(obranch == nullptr)
if(!obranch)
return -error;
paths_.emplace_back(obranch);