aboutsummaryrefslogtreecommitdiff
path: root/src/nix/verify.cc
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2020-06-02 12:47:18 -0400
committerGitHub <noreply@github.com>2020-06-02 12:47:18 -0400
commit25e61812f341a4467ab4fdffb12f63b48a3d0272 (patch)
treed251218d52c37a0ffffbd53a6c8e571ce87ac496 /src/nix/verify.cc
parenta5d820a0a396db01e6297dfcadaa3218a1e918c7 (diff)
Apply suggestions from code review
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
Diffstat (limited to 'src/nix/verify.cc')
-rw-r--r--src/nix/verify.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/verify.cc b/src/nix/verify.cc
index d8636435c..d9b200591 100644
--- a/src/nix/verify.cc
+++ b/src/nix/verify.cc
@@ -87,7 +87,7 @@ struct CmdVerify : StorePathsCommand
if (!noContents) {
std::unique_ptr<AbstractHashSink> hashSink;
- if (info->ca)
+ if (!info->ca)
hashSink = std::make_unique<HashSink>(info->narHash.type);
else
hashSink = std::make_unique<HashModuloSink>(info->narHash.type, storePathToHash(store->printStorePath(info->path)));