Skip to content

Commit 870bb68

Browse files
committed
DerivationBuilder::registerOutputs: Inline checkSuffix
It is a simple constant that is only used once.
1 parent 4bc9ae6 commit 870bb68

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/libstore/unix/build/derivation-builder.cc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1422,8 +1422,6 @@ SingleDrvOutputs DerivationBuilderImpl::registerOutputs()
14221422
outputs to allow hard links between outputs. */
14231423
InodesSeen inodesSeen;
14241424

1425-
Path checkSuffix = ".check";
1426-
14271425
std::exception_ptr delayedException;
14281426

14291427
/* The paths that can be referenced are the input closures, the
@@ -1839,7 +1837,7 @@ SingleDrvOutputs DerivationBuilderImpl::registerOutputs()
18391837
if (newInfo.narHash != oldInfo.narHash) {
18401838
miscMethods->noteCheckMismatch();
18411839
if (settings.runDiffHook || settings.keepFailed) {
1842-
auto dst = store.toRealPath(finalDestPath + checkSuffix);
1840+
auto dst = store.toRealPath(finalDestPath + ".check");
18431841
deletePath(dst);
18441842
movePath(actualPath, dst);
18451843

0 commit comments

Comments
 (0)