From b3fc2dfc8033c1fa802aa9852e49c579dc084d77 Mon Sep 17 00:00:00 2001 From: CHAMI Rachid Date: Wed, 20 Sep 2023 17:45:49 +0100 Subject: [PATCH] chore: use builtin min function (#2540) ## Overview ## Checklist - [ ] New and updated code has appropriate documentation - [ ] New and updated code has new and/or updated testing - [ ] Required CI checks are passing - [ ] Visual proof for any user facing features like CLI or documentation updates - [ ] Linked issues closed with keywords --- x/blob/ante/max_total_blob_size_ante.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/x/blob/ante/max_total_blob_size_ante.go b/x/blob/ante/max_total_blob_size_ante.go index a6fd279c65..7d7c0f4a7c 100644 --- a/x/blob/ante/max_total_blob_size_ante.go +++ b/x/blob/ante/max_total_blob_size_ante.go @@ -77,12 +77,3 @@ func getTotal(sizes []uint32) (sum int) { } return sum } - -// min returns the minimum of two ints. This function can be removed once we -// upgrade to Go 1.21. -func min(a, b int) int { - if a < b { - return a - } - return b -}