We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49f9e07 commit ed76f40Copy full SHA for ed76f40
primitives/share-pool/src/lib.rs
@@ -81,7 +81,7 @@ where
81
82
// Then, update this key's share
83
if denominator == 0 {
84
- return Ok(());
+ Ok(())
85
} else {
86
// There are already keys in the pool, set or update this key
87
let value_per_share: I64F64 = I64F64::saturating_from_num(
@@ -95,9 +95,9 @@ where
95
.unwrap_or(I64F64::saturating_from_num(0));
96
97
if shares_per_update != 0 {
98
99
100
- return Err(());
+ Err(())
101
}
102
103
0 commit comments