[web_server] Remove redundant assignment in deq_push_back_with_dedup_ (#11642)

This commit is contained in:
J. Nick Koston authored and GitHub committed 2025-11-03 14:08:12 +13:00
1 parent 40f919eaa6
commit 7a1297ec84
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -111,8 +111,7 @@ void DeferredUpdateEventSource::deq_push_back_with_dedup_(void *source, message_
// Use range-based for loop instead of std::find_if to reduce template instantiation overhead and binary size
for (auto &event : this->deferred_queue_) {
if (event == item) {
event = item;
return;
return; // Already in queue, no need to update since items are equal
}
}
this->deferred_queue_.push_back(item);