mirror of
https://github.com/status-im/eth2.0-specs.git
synced 2025-02-17 13:06:34 +00:00
remove extra def of clamp
This commit is contained in:
parent
4191b0089a
commit
cdabb4b205
@ -378,8 +378,6 @@ def clamp(minval: int, maxval: int, x: int) -> int:
|
||||
return maxval
|
||||
else:
|
||||
return x
|
||||
def clamp(minval, maxval, x):
|
||||
return minval if x < minval else maxval if x > maxval else x
|
||||
```
|
||||
|
||||
Now, our combined helper method:
|
||||
|
Loading…
x
Reference in New Issue
Block a user