Skip to content

Commit

Permalink
FMT
Browse files Browse the repository at this point in the history
  • Loading branch information
gupnik committed Oct 30, 2024
1 parent 81a9bd1 commit 0007fbd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion substrate/frame/collective/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,10 @@ impl<T: Config<I>, I: 'static> Pallet<T, I> {
}

// Only allow actual closing of the proposal after the voting period has ended.
ensure!(T::BlockNumberProvider::current_block_number() >= voting.end, Error::<T, I>::TooEarly);
ensure!(
T::BlockNumberProvider::current_block_number() >= voting.end,
Error::<T, I>::TooEarly
);

let prime_vote = Prime::<T, I>::get().map(|who| voting.ayes.iter().any(|a| a == &who));

Expand Down

0 comments on commit 0007fbd

Please sign in to comment.