Skip to content

Commit d788b27

Browse files
cuishuanggopherbot
authored andcommitted
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 <[email protected]> Reviewed-by: qiulaidongfeng <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Ian Lance Taylor <[email protected]> Run-TryBot: Ian Lance Taylor <[email protected]> Reviewed-by: Dmitri Shuralyov <[email protected]>
1 parent 41c71d4 commit d788b27

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/internal/fuzz/mutator.go

-7
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,6 @@ func (m *mutator) chooseLen(n int) int {
4444
}
4545
}
4646

47-
func min(a, b int) int {
48-
if a < b {
49-
return a
50-
}
51-
return b
52-
}
53-
5447
// mutate performs several mutations on the provided values.
5548
func (m *mutator) mutate(vals []any, maxBytes int) {
5649
// TODO(katiehockman): pull some of these functions into helper methods and

0 commit comments

Comments
 (0)