dropEmptyInitThenConcatStringsSep -> concatStringSep: showVersions version is not empty

This commit is contained in:
Robert Hensing 2024-07-13 01:34:41 +02:00
parent d9043021df
commit cf3c5cd189

View file

@ -6,6 +6,8 @@
#include <regex> #include <regex>
#include "strings.hh"
namespace nix { namespace nix {
struct Info struct Info
@ -49,7 +51,7 @@ std::string showVersions(const std::set<std::string> & versions)
std::set<std::string> versions2; std::set<std::string> versions2;
for (auto & version : versions) for (auto & version : versions)
versions2.insert(version.empty() ? "ε" : version); versions2.insert(version.empty() ? "ε" : version);
return dropEmptyInitThenConcatStringsSep(", ", versions2); return concatStringsSep(", ", versions2);
} }
void printClosureDiff( void printClosureDiff(