Skip to content

Commit ed76f40

Browse files
committed
clpy
1 parent 49f9e07 commit ed76f40

File tree

1 file changed

+3
-3
lines changed
  • primitives/share-pool/src

1 file changed

+3
-3
lines changed

primitives/share-pool/src/lib.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ where
8181

8282
// Then, update this key's share
8383
if denominator == 0 {
84-
return Ok(());
84+
Ok(())
8585
} else {
8686
// There are already keys in the pool, set or update this key
8787
let value_per_share: I64F64 = I64F64::saturating_from_num(
@@ -95,9 +95,9 @@ where
9595
.unwrap_or(I64F64::saturating_from_num(0));
9696

9797
if shares_per_update != 0 {
98-
return Ok(());
98+
Ok(())
9999
} else {
100-
return Err(());
100+
Err(())
101101
}
102102
}
103103
}

0 commit comments

Comments
 (0)