refactor(3p/nix): Apply clang-tidy's readability-* fixes

This applies the readability fixes listed here:

https://clang.llvm.org/extra/clang-tidy/checks/list.html
This commit is contained in:
Vincent Ambo 2020-05-20 22:27:37 +01:00
parent d331d3a0b5
commit 689ef502f5
78 changed files with 863 additions and 792 deletions

View file

@ -86,7 +86,7 @@ static void update(const StringSet& channelNames) {
for (const auto& channel : channels) {
auto name = channel.first;
auto url = channel.second;
if (!(channelNames.empty() || channelNames.count(name))) {
if (!(channelNames.empty() || (channelNames.count(name) != 0u))) {
continue;
}
@ -216,7 +216,7 @@ static int _main(int argc, char** argv) {
case cNone:
throw UsageError("no command specified");
case cAdd:
if (args.size() < 1 || args.size() > 2) {
if (args.empty() || args.size() > 2) {
throw UsageError("'--add' requires one or two arguments");
}
{