From 243402097156fe475c12042c2910785339724834 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Wed, 20 Feb 2019 22:15:33 +0100 Subject: [PATCH] storage/udisks2: adjust lambda indent --- src/storage/plugins/UdisksStorage.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/storage/plugins/UdisksStorage.cxx b/src/storage/plugins/UdisksStorage.cxx index 135489032..df2e937ae 100644 --- a/src/storage/plugins/UdisksStorage.cxx +++ b/src/storage/plugins/UdisksStorage.cxx @@ -138,9 +138,11 @@ UdisksStorage::OnListReply(ODBus::Message reply) noexcept try { ParseObjects(reply, [this](Object &&o) { - if (o.IsId(id)) - dbus_path = std::move(o.path); - }); + if (!o.IsId(id)) + return; + + dbus_path = std::move(o.path); + }); if (dbus_path.empty()) throw FormatRuntimeError("No such UDisks2 object: %s",