diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-02 12:47:18 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-02 12:47:18 -0400 |
commit | 25e61812f341a4467ab4fdffb12f63b48a3d0272 (patch) | |
tree | d251218d52c37a0ffffbd53a6c8e571ce87ac496 /src/nix-store/nix-store.cc | |
parent | a5d820a0a396db01e6297dfcadaa3218a1e918c7 (diff) |
Apply suggestions from code review
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
Diffstat (limited to 'src/nix-store/nix-store.cc')
-rw-r--r-- | src/nix-store/nix-store.cc | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/nix-store/nix-store.cc b/src/nix-store/nix-store.cc index 5d8d04252..c74847394 100644 --- a/src/nix-store/nix-store.cc +++ b/src/nix-store/nix-store.cc @@ -944,11 +944,7 @@ static void opServe(Strings opFlags, Strings opArgs) info.references = readStorePaths<StorePathSet>(*store, in); in >> info.registrationTime >> info.narSize >> info.ultimate; info.sigs = readStrings<StringSet>(in); - { - std::string rawCA; - in >> rawCA; - info.ca = parseContentAddressOpt(rawCA); - } + info.ca = parseContentAddressOpt(readString(in)); if (info.narSize == 0) throw Error("narInfo is too old and missing the narSize field"); |