storage/udisks2: adjust lambda indent

This commit is contained in:
Max Kellermann 2019-02-20 22:15:33 +01:00
parent 41e0eb7378
commit 2434020971
1 changed files with 5 additions and 3 deletions

View File

@ -138,9 +138,11 @@ UdisksStorage::OnListReply(ODBus::Message reply) noexcept
try { try {
ParseObjects(reply, [this](Object &&o) { ParseObjects(reply, [this](Object &&o) {
if (o.IsId(id)) if (!o.IsId(id))
dbus_path = std::move(o.path); return;
});
dbus_path = std::move(o.path);
});
if (dbus_path.empty()) if (dbus_path.empty())
throw FormatRuntimeError("No such UDisks2 object: %s", throw FormatRuntimeError("No such UDisks2 object: %s",