Skip to content

Commit

Permalink
dropEmptyInitThenConcatStringsSep -> concatStringSep: sigs are not empty
Browse files Browse the repository at this point in the history
... but if they are, I'd like to see at least a hint of it so that
I'd know to fix it.
  • Loading branch information
roberth committed Jul 13, 2024
1 parent cd85930 commit 46e3f0d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nix/path-info.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@

#include <nlohmann/json.hpp>

#include "strings.hh"

using namespace nix;
using nlohmann::json;

Expand Down Expand Up @@ -185,7 +187,7 @@ struct CmdPathInfo : StorePathsCommand, MixJSON
if (info->ultimate) ss.push_back("ultimate");
if (info->ca) ss.push_back("ca:" + renderContentAddress(*info->ca));
for (auto & sig : info->sigs) ss.push_back(sig);
std::cout << dropEmptyInitThenConcatStringsSep(" ", ss);
std::cout << concatStringsSep(" ", ss);
}

std::cout << std::endl;
Expand Down

0 comments on commit 46e3f0d

Please sign in to comment.