1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 12:41:15 +02:00

Fix assertion failure in FlakeRef::to_string()

This commit is contained in:
Eelco Dolstra 2019-04-19 11:16:14 +02:00
parent 6e4210d8ce
commit 46cb15df9b
4 changed files with 5 additions and 3 deletions

View file

@ -128,7 +128,7 @@ std::string FlakeRef::to_string() const
}
else if (auto refData = std::get_if<FlakeRef::IsGit>(&data)) {
assert(ref || !rev);
assert(!rev || ref);
string = refData->uri;
}