mirror of
https://github.com/OffchainLabs/prysm.git
synced 2026-01-08 23:18:15 -05:00
refactor: use the built-in min to simplify the code (#15091)
Signed-off-by: riyueguang <rustruby@outlook.com>
This commit is contained in:
@@ -147,10 +147,7 @@ func (s *gcSizes) Alignof(T types.Type) int64 {
|
||||
if a < 1 {
|
||||
return 1
|
||||
}
|
||||
if a > s.MaxAlign {
|
||||
return s.MaxAlign
|
||||
}
|
||||
return a
|
||||
return min(a, s.MaxAlign)
|
||||
}
|
||||
|
||||
var basicSizes = [...]byte{
|
||||
|
||||
Reference in New Issue
Block a user