linting
This commit is contained in:
parent
6746d5e53c
commit
9177ae7151
@ -133,7 +133,8 @@ JoinedRoom::deserialize(const QJsonValue &data)
|
||||
|
||||
if (state.contains("events")) {
|
||||
if (!state.value("events").isArray()) {
|
||||
throw DeserializationException("join/state/events should be an array");
|
||||
throw DeserializationException(
|
||||
"join/state/events should be an array");
|
||||
}
|
||||
|
||||
state_.deserialize(state.value("events"));
|
||||
@ -168,7 +169,8 @@ JoinedRoom::deserialize(const QJsonValue &data)
|
||||
|
||||
if (object.contains("unread_notifications")) {
|
||||
if (!object.value("unread_notifications").isObject()) {
|
||||
throw DeserializationException("join/unread_notifications is not a JSON object");
|
||||
throw DeserializationException(
|
||||
"join/unread_notifications is not a JSON object");
|
||||
}
|
||||
|
||||
QJsonObject unreadNotifications = object.value("unread_notifications").toObject();
|
||||
|
Loading…
Reference in New Issue
Block a user