From 74b9ba5c40b8a6b7ba3c3d890d08cfd9933fa8c9 Mon Sep 17 00:00:00 2001 From: John Knox Date: Fri, 27 Sep 2019 02:55:46 -0700 Subject: [PATCH] Auto-format FlipperClient.cpp Reviewed By: passy Differential Revision: D17601356 fbshipit-source-id: 04701b409a838ad4dac54ae7c4f5f97cfa574dbe --- xplat/Flipper/FlipperClient.cpp | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xplat/Flipper/FlipperClient.cpp b/xplat/Flipper/FlipperClient.cpp index cfba8ab26..1ab18008f 100644 --- a/xplat/Flipper/FlipperClient.cpp +++ b/xplat/Flipper/FlipperClient.cpp @@ -170,9 +170,9 @@ void FlipperClient::onDisconnected() { void FlipperClient::onMessageReceived( const dynamic& message, std::unique_ptr uniqueResponder) { - // Convert to shared pointer so we can hold on to it while passing it to the plugin, and still use it - // to respond with an error if we catch an exception. - std::shared_ptr responder = std::move(uniqueResponder); + // Convert to shared pointer so we can hold on to it while passing it to the + // plugin, and still use it to respond with an error if we catch an exception. + std::shared_ptr responder = std::move(uniqueResponder); try { std::lock_guard lock(mutex_); const auto& method = message["method"]; @@ -237,9 +237,7 @@ void FlipperClient::onMessageReceived( } const auto& conn = connections_.at(params["api"].getString()); conn->call( - params["method"].getString(), - params.getDefault("params"), - responder); + params["method"].getString(), params.getDefault("params"), responder); return; }