mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 14:52:55 +00:00
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:
parent
76b2d5ef3d
commit
6b2c277c36
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user