mirror of
https://github.com/NixOS/nix
synced 2025-06-30 07:33:16 +02:00
Apply suggestions from code review
Co-authored-by: Matthew Bauer <mjbauer95@gmail.com>
This commit is contained in:
parent
a5d820a0a3
commit
25e61812f3
5 changed files with 7 additions and 15 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue