Fix unnecessary recursion in ERS97 algorithm

This commit is contained in:
RunasSudo 2021-07-23 00:22:55 +10:00
parent 65b1d8e42b
commit 4690c32607
No known key found for this signature in database
GPG Key ID: 7234E476BF21C61A
1 changed files with 2 additions and 2 deletions

View File

@ -841,8 +841,8 @@ fn elect_meeting_quota<'a, N: Number>(state: &mut CountState<'a, N>, opts: &STVO
calculate_quota(state, opts); calculate_quota(state, opts);
// Repeat in case vote required for election has changed // Repeat in case vote required for election has changed
match elect_meeting_quota(state, opts) { match elect_hopefuls(state, opts) {
Ok(_) => {} Ok(_) => { break; }
Err(e) => { return Err(e); } Err(e) => { return Err(e); }
} }
} }