From 8a068bd0252573750be6ea754f0e3ff502fb6019 Mon Sep 17 00:00:00 2001 From: John Ericson Date: Tue, 11 Aug 2020 21:25:40 +0000 Subject: [PATCH] Remove redundant equality check --- src/libstore/build.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstore/build.cc b/src/libstore/build.cc index 1b55b9826..cc596b063 100644 --- a/src/libstore/build.cc +++ b/src/libstore/build.cc @@ -4086,7 +4086,7 @@ void DerivationGoal::registerOutputs() } else if (buildMode == bmCheck) { /* Path already exists, and we want to compare, so we leave out new path in place. */ - } else if (finalDestPath == finalDestPath && worker.store.isValidPath(newInfo.path)) { + } else if (worker.store.isValidPath(newInfo.path)) { /* Path already exists because CA path produced by something else. No moving needed. */ assert(newInfo.ca);