dropEmptyInitThenConcatStringsSep -> concatStringSep: sigs are not empty

... but if they are, I'd like to see at least a hint of it so that
I'd know to fix it.
This commit is contained in:
Robert Hensing 2024-07-13 01:51:50 +02:00
parent 76b2d5ef3d
commit 6b2c277c36

View File

@ -9,6 +9,8 @@
#include <nlohmann/json.hpp>
#include "strings.hh"
using namespace nix;
using nlohmann::json;
@ -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;