mirror of
https://github.com/golang/go
synced 2024-11-17 15:04:45 -07:00
internal/fuzz: use the built-in min function
Change-Id: I26be9a9faa27c6c03cf8b9dec5908d8617d61312 Reviewed-on: https://go-review.googlesource.com/c/go/+/518276 Run-TryBot: shuang cui <imcusg@gmail.com> Reviewed-by: qiulaidongfeng <2645477756@qq.com> Reviewed-by: Ian Lance Taylor <iant@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Ian Lance Taylor <iant@google.com> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
This commit is contained in:
parent
41c71d48a1
commit
d788b27cd4
@ -44,13 +44,6 @@ func (m *mutator) chooseLen(n int) int {
|
||||
}
|
||||
}
|
||||
|
||||
func min(a, b int) int {
|
||||
if a < b {
|
||||
return a
|
||||
}
|
||||
return b
|
||||
}
|
||||
|
||||
// mutate performs several mutations on the provided values.
|
||||
func (m *mutator) mutate(vals []any, maxBytes int) {
|
||||
// TODO(katiehockman): pull some of these functions into helper methods and
|
||||
|
Loading…
Reference in New Issue
Block a user