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); }); }