diff options
author | Vincent Ambo <tazjin@google.com> | 2020-05-20T21·27+0100 |
---|---|---|
committer | Vincent Ambo <tazjin@google.com> | 2020-05-20T21·27+0100 |
commit | 689ef502f5b0655c9923ed77da2ae3504630f473 (patch) | |
tree | 3e331c153646f136875f047cc3b9f0aad8c86341 /third_party/nix/src/nix/log.cc | |
parent | d331d3a0b5c497a46e2636f308234be66566c04c (diff) |
refactor(3p/nix): Apply clang-tidy's readability-* fixes r/788
This applies the readability fixes listed here: https://clang.llvm.org/extra/clang-tidy/checks/list.html
Diffstat (limited to 'third_party/nix/src/nix/log.cc')
-rw-r--r-- | third_party/nix/src/nix/log.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/third_party/nix/src/nix/log.cc b/third_party/nix/src/nix/log.cc index 86f133e94a7a..63d3554cc2fb 100644 --- a/third_party/nix/src/nix/log.cc +++ b/third_party/nix/src/nix/log.cc @@ -40,7 +40,7 @@ struct CmdLog : InstallableCommand { RunPager pager; for (auto& sub : subs) { - auto log = b.drvPath != "" ? sub->getBuildLog(b.drvPath) : nullptr; + auto log = !b.drvPath.empty() ? sub->getBuildLog(b.drvPath) : nullptr; for (auto& output : b.outputs) { if (log) { break; |