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
1 changed files with 8 additions and 8 deletions

View File

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