aboutsummaryrefslogtreecommitdiff
path: root/src/libfetchers/registry.cc
diff options
context:
space:
mode:
authorMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-10-28 09:41:18 -0500
committerMatthew Kenigsberg <matthewkenigsberg@gmail.com>2020-10-28 17:54:28 -0500
commit6a4bf535d8126d8dc7306b3940bb49e0cc014a56 (patch)
tree7d64f9d438bbdfdde69ad81f7ed8af4c18fca3fb /src/libfetchers/registry.cc
parent5ac911bad6e5760759bcb62772cac1ddc056b773 (diff)
Capitalize JSON for consistency
Diffstat (limited to 'src/libfetchers/registry.cc')
-rw-r--r--src/libfetchers/registry.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libfetchers/registry.cc b/src/libfetchers/registry.cc
index 2426882ca..81b2227de 100644
--- a/src/libfetchers/registry.cc
+++ b/src/libfetchers/registry.cc
@@ -60,10 +60,10 @@ void Registry::write(const Path & path)
nlohmann::json arr;
for (auto & entry : entries) {
nlohmann::json obj;
- obj["from"] = attrsToJson(entry.from.toAttrs());
- obj["to"] = attrsToJson(entry.to.toAttrs());
+ obj["from"] = attrsToJSON(entry.from.toAttrs());
+ obj["to"] = attrsToJSON(entry.to.toAttrs());
if (!entry.extraAttrs.empty())
- obj["to"].update(attrsToJson(entry.extraAttrs));
+ obj["to"].update(attrsToJSON(entry.extraAttrs));
if (entry.exact)
obj["exact"] = true;
arr.emplace_back(std::move(obj));