Skip to content

Commit

Permalink
[ceremonies] remove unnecessary loc_ix >= 0 comparison for u64 type
Browse files Browse the repository at this point in the history
  • Loading branch information
clangenb committed Dec 11, 2021
1 parent e8bb32e commit 4e93b0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ceremonies/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -909,7 +909,7 @@ impl<T: Config> Module<T> {
let assignment_params = Self::assignments(cc).locations;
let location_idx =
Self::assignment_fn(meetup_idx, assignment_params, locations.len() as u64).ok()?;
if (location_idx >= 0) && (location_idx < locations.len() as u64) {
if location_idx < locations.len() as u64 {
Some(locations[(location_idx) as usize])
} else {
None
Expand Down

0 comments on commit 4e93b0d

Please sign in to comment.