mirror of
https://github.com/NixOS/nix.git
synced 2024-11-22 06:42:28 +00:00
Update nar-info-disk-cache.cc
fix case when asserts are no-op, like in release build
This commit is contained in:
parent
bdb6f56c90
commit
64cbd4c05a
@ -209,7 +209,7 @@ public:
|
||||
|
||||
{
|
||||
auto r(state->insertCache.use()(uri)(time(0))(storeDir)(wantMassQuery)(priority));
|
||||
assert(r.next());
|
||||
if (!r.next()) { abort(); }
|
||||
ret.id = (int) r.getInt(0);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user