Skip to content

Commit

Permalink
fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nbaztec committed Oct 27, 2022
1 parent 6ca7f86 commit 361ca58
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pallets/parachain-staking/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1567,7 +1567,8 @@ pub mod pallet {
let collator_fee = payout_info.collator_commission;
let collator_issuance = collator_fee * payout_info.round_issuance;

if let Some((collator, state)) = <AtStake<T>>::iter_prefix(paid_for_round).drain().next()
if let Some((collator, state)) =
<AtStake<T>>::iter_prefix(paid_for_round).drain().next()
{
// Take the awarded points for the collator
let pts = <AwardedPts<T>>::take(paid_for_round, &collator);
Expand Down

0 comments on commit 361ca58

Please sign in to comment.