diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2019-04-15 14:08:18 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2019-04-15 14:08:18 +0200 |
commit | c179f668e5bf64499169b17515bdc4c40473fca9 (patch) | |
tree | e61a7ef18b59d73b3c2853efca9954de247b3ae8 /src/libexpr/primops/flake.cc | |
parent | f6d684b5e21966518d019c0225c3b0e8da2b6aff (diff) |
Slight cleanup
Diffstat (limited to 'src/libexpr/primops/flake.cc')
-rw-r--r-- | src/libexpr/primops/flake.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/libexpr/primops/flake.cc b/src/libexpr/primops/flake.cc index e1eeffca6..3c1cffba3 100644 --- a/src/libexpr/primops/flake.cc +++ b/src/libexpr/primops/flake.cc @@ -12,8 +12,7 @@ namespace nix { -/* Read the registry or a lock file. (Currently they have an identical - format. */ +/* Read a registry. */ std::shared_ptr<FlakeRegistry> readRegistry(const Path & path) { auto registry = std::make_shared<FlakeRegistry>(); @@ -34,8 +33,8 @@ std::shared_ptr<FlakeRegistry> readRegistry(const Path & path) return registry; } -/* Write the registry or lock file to a file. */ -void writeRegistry(FlakeRegistry registry, Path path) +/* Write a registry to a file. */ +void writeRegistry(const FlakeRegistry & registry, Path path) { nlohmann::json json; json["version"] = 1; |