From 05fe996dddd16dc879c61351c71d3fda84ab99c9 Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris <sideris.konstantin@gmail.com> Date: Tue, 27 Feb 2018 16:09:39 +0200 Subject: [PATCH] Remove an extra error variable --- src/client.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/client.hpp b/src/client.hpp index 4c81389cc..2b9c92c44 100644 --- a/src/client.hpp +++ b/src/client.hpp @@ -249,10 +249,7 @@ mtx::client::Client::create_session(const Callback &callback) mtx::client::errors::ClientError client_error; client_error.error_code = ec; - std::experimental::optional<mtx::client::errors::ClientError> error; - error = client_error; - - callback(response_data, error); + callback(response_data, client_error); }); // Set SNI Hostname (many hosts need this to handshake successfully) -- GitLab