Skip to content

Commit

Permalink
prdoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Nov 17, 2024
1 parent ab0b870 commit dae7a6e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions prdoc/pr_6509.prdoc
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,8 @@ title: Migrate pallet-democracy benchmark to v2

doc:
- audience: Runtime Dev
description: |-
Part of:

- #6202.
description: |
"Part of issue #6202."

crates:
- name: pallet-democracy
Expand Down
10 changes: 4 additions & 6 deletions substrate/frame/democracy/src/benchmarking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,8 @@ mod benchmarks {
for i in 0..r {
if let Some(value) = ReferendumInfoOf::<T>::get(i) {
match value {
ReferendumInfo::Finished { .. } => {
return Err("Referendum has been finished".into())
},
ReferendumInfo::Finished { .. } =>
return Err("Referendum has been finished".into()),
ReferendumInfo::Ongoing(_) => (),
}
}
Expand Down Expand Up @@ -590,9 +589,8 @@ mod benchmarks {
for i in 0..r {
if let Some(value) = ReferendumInfoOf::<T>::get(i) {
match value {
ReferendumInfo::Finished { .. } => {
return Err("Referendum has been finished".into())
},
ReferendumInfo::Finished { .. } =>
return Err("Referendum has been finished".into()),
ReferendumInfo::Ongoing(_) => (),
}
}
Expand Down

0 comments on commit dae7a6e

Please sign in to comment.