mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-10 16:26:18 +02:00
Fix build
This commit is contained in:
parent
00fa7e2205
commit
2853ba4ab2
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue