Skip to content

Commit 7689181

Browse files
committedMay 8, 2017
Minor cleanup
1 parent 00b2862 commit 7689181

File tree

1 file changed

+13
-11
lines changed

1 file changed

+13
-11
lines changed
 

‎src/libstore/store-api.cc

+13-11
Original file line numberDiff line numberDiff line change
@@ -482,21 +482,23 @@ void Store::pathInfoToJSON(JSONPlaceholder & jsonOut, const PathSet & storePaths
482482
if (showClosureSize)
483483
jsonPath.attr("closureSize", getClosureSize(storePath));
484484

485-
if (!includeImpureInfo) continue;
485+
if (includeImpureInfo) {
486486

487-
if (info->deriver != "")
488-
jsonPath.attr("deriver", info->deriver);
487+
if (info->deriver != "")
488+
jsonPath.attr("deriver", info->deriver);
489489

490-
if (info->registrationTime)
491-
jsonPath.attr("registrationTime", info->registrationTime);
490+
if (info->registrationTime)
491+
jsonPath.attr("registrationTime", info->registrationTime);
492492

493-
if (info->ultimate)
494-
jsonPath.attr("ultimate", info->ultimate);
493+
if (info->ultimate)
494+
jsonPath.attr("ultimate", info->ultimate);
495+
496+
if (!info->sigs.empty()) {
497+
auto jsonSigs = jsonPath.list("signatures");
498+
for (auto & sig : info->sigs)
499+
jsonSigs.elem(sig);
500+
}
495501

496-
if (!info->sigs.empty()) {
497-
auto jsonSigs = jsonPath.list("signatures");
498-
for (auto & sig : info->sigs)
499-
jsonSigs.elem(sig);
500502
}
501503
}
502504
}

0 commit comments

Comments
 (0)