Remove an unneeded intermediate variable

This commit is contained in:
Ilya Fedin 2023-09-27 00:24:00 +04:00 committed by John Preston
parent 716cc6ef9e
commit 9019a2cb08

View file

@ -274,14 +274,14 @@ void GetInhibited(Fn<void(bool)> callback) {
[=](const Glib::RefPtr<Gio::AsyncResult> &result) { [=](const Glib::RefPtr<Gio::AsyncResult> &result) {
Core::Sandbox::Instance().customEnterFromEventLoop([&] { Core::Sandbox::Instance().customEnterFromEventLoop([&] {
Noexcept([&] { Noexcept([&] {
const auto value = connection->call_finish( callback(
result connection->call_finish(
).get_child( result
0 ).get_child(
).get_dynamic<Glib::Variant<bool>>( 0
).get(); ).get_dynamic<Glib::Variant<bool>>(
).get()
callback(value); );
}, [&] { }, [&] {
callback(false); callback(false);
}); });