commit 918a97d444b7e80953afbdef4490a47691342b1b parent 8b84f1e37cbdfefceb2f808f235ee1b1932f7e13 Author: Jack Mordaunt <jackmordaunt.dev@gmail.com> Date: Mon, 6 May 2024 13:16:25 +0800 test: use builtin 'min' No need for user level function anymore. Diffstat:
| M | internal/test/audio_test.go | | | 8 | +------- |
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/internal/test/audio_test.go b/internal/test/audio_test.go @@ -174,14 +174,8 @@ func equal(t *testing.T, left, right []byte) bool { if mean > 0.1 { return false } - return true -} -func min(left, right int) int { - if left < right { - return left - } - return right + return true } func abs(n int) int {