summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2019-02-20 22:15:33 +0100
committerMax Kellermann <max@musicpd.org>2019-02-21 13:31:57 +0100
commit243402097156fe475c12042c2910785339724834 (patch)
tree23639a08879459e450b7497e225317ec5aadca4b /src
parent41e0eb7378a2019cc6dd1687652dc05846e2c1d9 (diff)
storage/udisks2: adjust lambda indent
Diffstat (limited to 'src')
-rw-r--r--src/storage/plugins/UdisksStorage.cxx8
1 files 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",