1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-17 16:02:43 +01:00

sourceToSink(): Throw EndOfFile

This commit is contained in:
Eelco Dolstra 2024-07-22 15:18:58 +02:00
parent 0194f81587
commit 609df83c01
2 changed files with 4 additions and 6 deletions

View file

@ -1245,7 +1245,6 @@ StorePath LocalStore::addToStoreFromDump(
});
try {
got = source.read(dumpBuffer.get() + oldSize, want);
if (!got) break;
} catch (EndOfFile &) {
inMemory = true;
break;