diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-19 11:16:14 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-19 11:16:14 +0200 |
commit | 46cb15df9b3501ca631779fa7d5c6299c1c17b53 (patch) | |
tree | 1c84d3c976cc70131efac35d6f8b5379dd3625cd /src/libexpr/primops/flakeref.cc | |
parent | 6e4210d8ce76f52d9fd717660ea24b98ba780843 (diff) |
Fix assertion failure in FlakeRef::to_string()
Diffstat (limited to 'src/libexpr/primops/flakeref.cc')
-rw-r--r-- | src/libexpr/primops/flakeref.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/primops/flakeref.cc b/src/libexpr/primops/flakeref.cc index 973987469..97f31377a 100644 --- a/src/libexpr/primops/flakeref.cc +++ b/src/libexpr/primops/flakeref.cc @@ -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; } |