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 {
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",