mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2025-01-31 15:36:47 +02:00
dropEmptyInitThenConcatStringsSep -> concatStringSep: showVersions version is not empty
This commit is contained in:
parent
d9043021df
commit
cf3c5cd189
1 changed files with 3 additions and 1 deletions
|
@ -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(
|
||||||
|
|
Loading…
Reference in a new issue