Match *first;
first = hashmap_get(m->client->matches, m->match);
- if (first) {
- LIST_REMOVE(matches, first, m);
+ LIST_REMOVE(matches, first, m);
+ if (first)
assert_se(hashmap_replace(m->client->matches, m->match, first) >= 0);
- } else
+ else
hashmap_remove(m->client->matches, m->match);
m->client->n_matches--;