Skip to content

Commit 53946fe

Browse files
committed
Narrow scope on some local variables
1 parent cba27ba commit 53946fe

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/libstore/build/derivation-goal.cc

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -235,12 +235,14 @@ Goal::Co DerivationGoal::haveDerivation()
235235
}
236236
});
237237

238-
/* Check what outputs paths are not already valid. */
239-
auto [allValid, validOutputs] = checkPathValidity();
238+
{
239+
/* Check what outputs paths are not already valid. */
240+
auto [allValid, validOutputs] = checkPathValidity();
240241

241-
/* If they are all valid, then we're done. */
242-
if (allValid && buildMode == bmNormal) {
243-
co_return done(BuildResult::AlreadyValid, std::move(validOutputs));
242+
/* If they are all valid, then we're done. */
243+
if (allValid && buildMode == bmNormal) {
244+
co_return done(BuildResult::AlreadyValid, std::move(validOutputs));
245+
}
244246
}
245247

246248
/* We are first going to try to create the invalid output paths

0 commit comments

Comments
 (0)