Use .contains() instead of .find() or .count()

This commit is contained in:
Tim Wojtulewicz 2025-07-23 16:34:44 -07:00
parent d20550f553
commit b592b6c998
68 changed files with 201 additions and 207 deletions

View file

@ -736,7 +736,7 @@ bool ZeroMQBackend::DoProcessBackendMessage(int tag, byte_buffer_span payload) {
if ( tag == 1 ) {
// If this is the first time the subscription was observed, raise
// the ZeroMQ internal event.
if ( xpub_subscriptions.count(topic) == 0 ) {
if ( ! xpub_subscriptions.contains(topic) ) {
eh = event_subscription;
xpub_subscriptions.insert(topic);
}