From a4b4bda16663b0957e9a75c5c4e096af3bfdf2d9 Mon Sep 17 00:00:00 2001 From: faceair Date: Mon, 3 Apr 2023 12:23:24 +0800 Subject: [PATCH] lib/storage: remove unused code (#4050) --- lib/storage/partition_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/storage/partition_test.go b/lib/storage/partition_test.go index 88cf9cb68c..931ada012c 100644 --- a/lib/storage/partition_test.go +++ b/lib/storage/partition_test.go @@ -60,9 +60,6 @@ func TestAppendPartsToMergeManyParts(t *testing.T) { r := rand.New(rand.NewSource(1)) for i := 0; i < 1024; i++ { n := uint64(uint32(r.NormFloat64() * 1e9)) - if n < 0 { - n = -n - } n++ maxOutSize += n sizes = append(sizes, n)