From 5f6929b1dc4ffc43a13db6e89c529e1777c28170 Mon Sep 17 00:00:00 2001 From: "r.kuznetsov" Date: Thu, 29 Nov 2018 18:29:34 +0300 Subject: [PATCH] Review fixes --- map/user.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/map/user.cpp b/map/user.cpp index 9d83dc55f6..ab7d8c3698 100644 --- a/map/user.cpp +++ b/map/user.cpp @@ -502,12 +502,7 @@ void User::RequestBasicUserDetails(std::string const & accessToken, if (onSuccess) onSuccess(accessToken); - }, - [onError = std::move(onError)](int code, std::string const & response) - { - if (onError) - onError(code, response); - }); + }, onError); }); }