From 0f2cf531f705d370321843e5ba9135b2ebdb5d19 Mon Sep 17 00:00:00 2001 From: Vincent Ambo Date: Sun, 17 May 2020 16:31:57 +0100 Subject: style(3p/nix): Reformat project in Google C++ style Reformatted with: fd . -e hh -e cc | xargs clang-format -i --- third_party/nix/src/nix/ping-store.cc | 36 +++++++++++++---------------------- 1 file changed, 13 insertions(+), 23 deletions(-) (limited to 'third_party/nix/src/nix/ping-store.cc') diff --git a/third_party/nix/src/nix/ping-store.cc b/third_party/nix/src/nix/ping-store.cc index 310942574a2a..9e9ee15c8966 100644 --- a/third_party/nix/src/nix/ping-store.cc +++ b/third_party/nix/src/nix/ping-store.cc @@ -4,32 +4,22 @@ using namespace nix; -struct CmdPingStore : StoreCommand -{ - std::string name() override - { - return "ping-store"; - } +struct CmdPingStore : StoreCommand { + std::string name() override { return "ping-store"; } - std::string description() override - { - return "test whether a store can be opened"; - } + std::string description() override { + return "test whether a store can be opened"; + } - Examples examples() override - { - return { - Example{ - "To test whether connecting to a remote Nix store via SSH works:", - "nix ping-store --store ssh://mac1" - }, - }; - } + Examples examples() override { + return { + Example{ + "To test whether connecting to a remote Nix store via SSH works:", + "nix ping-store --store ssh://mac1"}, + }; + } - void run(ref store) override - { - store->connect(); - } + void run(ref store) override { store->connect(); } }; static RegisterCommand r1(make_ref()); -- cgit 1.4.1