mirror of
https://github.com/ethereum/consensus-specs.git
synced 2026-02-02 20:35:01 -05:00
remove extra def of clamp
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user