Skip to content

Commit f1dac50

Browse files
committed
refactor: remove redundant isCandidate check
1 parent 0553b90 commit f1dac50

File tree

1 file changed

+0
-1
lines changed
  • pallets/parachain-staking/src

1 file changed

+0
-1
lines changed

pallets/parachain-staking/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,6 @@ pub mod pallet {
10441044
let acc = ensure_signed(origin)?;
10451045
let is_active_candidate = Self::is_active_candidate(&acc);
10461046
ensure!(is_active_candidate.unwrap_or(true), Error::<T>::AlreadyLeaving);
1047-
ensure!(is_active_candidate.is_none(), Error::<T>::CandidateExists);
10481047
ensure!(!Self::is_delegator(&acc), Error::<T>::DelegatorExists);
10491048
ensure!(
10501049
stake >= T::MinCollatorCandidateStake::get(),

0 commit comments

Comments
 (0)