From 9019a2cb0852464d926e846887c906381d238d03 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Wed, 27 Sep 2023 00:24:00 +0400 Subject: [PATCH] Remove an unneeded intermediate variable --- .../linux/notifications_manager_linux.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp index b9e7208e2..935d85c2a 100644 --- a/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp +++ b/Telegram/SourceFiles/platform/linux/notifications_manager_linux.cpp @@ -274,14 +274,14 @@ void GetInhibited(Fn callback) { [=](const Glib::RefPtr &result) { Core::Sandbox::Instance().customEnterFromEventLoop([&] { Noexcept([&] { - const auto value = connection->call_finish( - result - ).get_child( - 0 - ).get_dynamic>( - ).get(); - - callback(value); + callback( + connection->call_finish( + result + ).get_child( + 0 + ).get_dynamic>( + ).get() + ); }, [&] { callback(false); });