1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 14:51:16 +02:00

dropEmptyInitThenConcatStringsSep -> concatStringSep: store paths are not empty

This commit is contained in:
Robert Hensing 2024-07-13 01:02:30 +02:00
parent 49d100ba8b
commit f1966e22d9
4 changed files with 9 additions and 4 deletions

View file

@ -22,6 +22,8 @@
#include <filesystem>
#include <nlohmann/json.hpp>
#include "strings.hh"
using json = nlohmann::json;
namespace nix {
@ -1208,7 +1210,7 @@ std::string StoreDirConfig::showPaths(const StorePathSet & paths)
std::string showPaths(const PathSet & paths)
{
return dropEmptyInitThenConcatStringsSep(", ", quoteStrings(paths));
return concatStringsSep(", ", quoteStrings(paths));
}