Fix linting

This commit is contained in:
Nicolas Werner 2022-04-18 18:54:32 +02:00
parent da6b3eb8f4
commit a2da4b6df3

View file

@ -114,8 +114,7 @@ rooms()
{ {
if (QDBusInterface interface{QStringLiteral(NHEKO_DBUS_SERVICE_NAME), QStringLiteral("/")}; if (QDBusInterface interface{QStringLiteral(NHEKO_DBUS_SERVICE_NAME), QStringLiteral("/")};
interface.isValid()) interface.isValid())
return QDBusReply<QVector<RoomInfoItem>>{interface.call(QStringLiteral("rooms"))} return QDBusReply<QVector<RoomInfoItem>>{interface.call(QStringLiteral("rooms"))}.value();
.value();
else else
return {}; return {};
} }