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

Simplify DerivationGoal::unprepareBuild::diskFull

We only need it defined in the narrower scope
This commit is contained in:
John Ericson 2025-08-28 12:06:06 -04:00
parent 374f8e79a1
commit 8dd289099c

View file

@ -475,12 +475,10 @@ SingleDrvOutputs DerivationBuilderImpl::unprepareBuild()
((double) buildResult.cpuSystem->count()) / 1000000);
}
bool diskFull = false;
/* Check the exit status. */
if (!statusOk(status)) {
diskFull |= decideWhetherDiskFull();
bool diskFull = decideWhetherDiskFull();
cleanupBuild();