Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
applied the code review suggestions
Browse files Browse the repository at this point in the history
  • Loading branch information
ToufeeqP committed Jun 14, 2023
1 parent d900569 commit 9c61914
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frame/collective/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -418,8 +418,8 @@ pub mod pallet {
old.len(),
);
}
if let Some(p) = prime.clone() {
ensure!(new_members.contains(&p), Error::<T, I>::PrimeAccountNotMember);
if let Some(p) = &prime {
ensure!(new_members.contains(p), Error::<T, I>::PrimeAccountNotMember);
}
let mut new_members = new_members;
new_members.sort();
Expand Down

0 comments on commit 9c61914

Please sign in to comment.