diff --git a/cumulus/pallets/collator-selection/src/lib.rs b/cumulus/pallets/collator-selection/src/lib.rs index 371154d043..9800104a83 100644 --- a/cumulus/pallets/collator-selection/src/lib.rs +++ b/cumulus/pallets/collator-selection/src/lib.rs @@ -379,9 +379,9 @@ pub mod pallet { candidates.remove(index); >::remove(who.clone()); Ok(candidates.len()) - }); + })?; Self::deposit_event(Event::CandidateRemoved(who.clone())); - current_count + Ok(current_count) } /// Assemble the current set of candidates and invulnerables into the next collator set.