mirror of
https://github.com/sigp/lighthouse.git
synced 2026-04-21 23:08:23 +00:00
Fix arithmetic lint in committee_cache (saturating_sub)
This commit is contained in:
@@ -332,7 +332,7 @@ impl CommitteeCache {
|
|||||||
self.shuffling_positions
|
self.shuffling_positions
|
||||||
.get(validator_index)?
|
.get(validator_index)?
|
||||||
.0
|
.0
|
||||||
.map(|p| p.get() - 1)
|
.map(|p| p.get().saturating_sub(1))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user