Use continue instead of break.
This commit is contained in:
parent
7e8304e6d4
commit
d49f86e5c2
@ -1567,7 +1567,7 @@ void InlineQueriesManager::on_get_inline_query_results(
|
|||||||
if (result->type_ == "game") {
|
if (result->type_ == "game") {
|
||||||
if (!has_photo) {
|
if (!has_photo) {
|
||||||
LOG(ERROR) << "Receive game without photo in the result of inline query: " << to_string(result);
|
LOG(ERROR) << "Receive game without photo in the result of inline query: " << to_string(result);
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
if (dialog_type == DialogType::Channel &&
|
if (dialog_type == DialogType::Channel &&
|
||||||
td_->chat_manager_->is_broadcast_channel(dialog_id.get_channel_id())) {
|
td_->chat_manager_->is_broadcast_channel(dialog_id.get_channel_id())) {
|
||||||
@ -1595,7 +1595,7 @@ void InlineQueriesManager::on_get_inline_query_results(
|
|||||||
int32 document_id = document_ptr->get_id();
|
int32 document_id = document_ptr->get_id();
|
||||||
if (document_id == telegram_api::documentEmpty::ID) {
|
if (document_id == telegram_api::documentEmpty::ID) {
|
||||||
LOG(ERROR) << "Receive empty cached document in the result of inline query";
|
LOG(ERROR) << "Receive empty cached document in the result of inline query";
|
||||||
break;
|
continue;
|
||||||
}
|
}
|
||||||
CHECK(document_id == telegram_api::document::ID);
|
CHECK(document_id == telegram_api::document::ID);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user