Replace nullptr

This commit is contained in:
Andrea Cavalli 2020-12-25 19:36:05 +01:00
parent 32295e2b6e
commit a2f86155a9

View File

@ -158,7 +158,9 @@ void GroupCallManager::on_update_group_call(tl_object_ptr<telegram_api::GroupCal
}
InputGroupCallId GroupCallManager::update_group_call(const tl_object_ptr<telegram_api::GroupCall> &group_call_ptr) {
CHECK(group_call_ptr != nullptr);
if (group_call_ptr == nullptr) {
return {};
}
InputGroupCallId call_id;
GroupCall call;