Fix warning.
This commit is contained in:
parent
bb957644cf
commit
df5806317b
@ -60,12 +60,12 @@ GroupCallVideoPayload get_group_call_video_payload(string json) {
|
|||||||
string json_copy = json;
|
string json_copy = json;
|
||||||
auto r_value = json_decode(json_copy);
|
auto r_value = json_decode(json_copy);
|
||||||
if (r_value.is_error()) {
|
if (r_value.is_error()) {
|
||||||
return {};
|
return GroupCallVideoPayload();
|
||||||
}
|
}
|
||||||
|
|
||||||
auto value = r_value.move_as_ok();
|
auto value = r_value.move_as_ok();
|
||||||
if (value.type() != JsonValue::Type::Object) {
|
if (value.type() != JsonValue::Type::Object) {
|
||||||
return {};
|
return GroupCallVideoPayload();
|
||||||
}
|
}
|
||||||
|
|
||||||
GroupCallVideoPayload result;
|
GroupCallVideoPayload result;
|
||||||
|
Loading…
Reference in New Issue
Block a user