about summary refs log tree commit diff
path: root/third_party/nix/src/nix/log.cc
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/nix/src/nix/log.cc')
-rw-r--r--third_party/nix/src/nix/log.cc2
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 86f133e94a..63d3554cc2 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;