Fix build

This commit is contained in:
Eelco Dolstra 2020-06-12 19:00:48 +02:00
parent 00fa7e2205
commit 2853ba4ab2

View file

@ -207,10 +207,10 @@ Hash::Hash(const std::string & s, HashType type)
Hash newHashAllowEmpty(std::string hashStr, HashType ht)
{
if (hashStr.empty())
{
if (hashStr.empty()) {
Hash h(ht);
warn("found empty hash, assuming you wanted '%s'", h.to_string(SRI));
warn("found empty hash, assuming '%s'", h.to_string(SRI, true));
return h;
} else
return Hash(hashStr, ht);
}