diff --git a/src/nix/add-root.cc b/src/nix/add-root.cc index 6773ebb05..541cf2559 100644 --- a/src/nix/add-root.cc +++ b/src/nix/add-root.cc @@ -9,7 +9,7 @@ using namespace nix; -struct CmdAddRoot: StoreCommand +struct CmdAddRoot : StoreCommand { std::vector links; bool checkResults = true; @@ -31,17 +31,20 @@ struct CmdAddRoot: StoreCommand std::string doc() override { return - #include "add-root.md" - ; +#include "add-root.md" + ; } - Category category() override { return catSecondary; } + Category category() override + { + return catSecondary; + } void run(ref store) override { auto & indirectRootStore = require(*store); - for (auto &link: links) { + for (auto & link : links) { auto indirectPath = absPath(link); if (indirectRootStore.isInStore(indirectPath)) { throw Error("Indirect root '%1%' must not be in the Nix store", link);