Skip to content

Commit 0ed1c02

Browse files
authored
fix: fix slice init length (#1989)
Signed-off-by: largemouth <largemouth@aliyun.com>
1 parent 7f1de41 commit 0ed1c02

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

x/audit/keeper/keeper_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ func TestProviderDeleteNonExistingAttributes(t *testing.T) {
112112
require.NoError(t, err)
113113

114114
attr := testutil.Attributes(t)
115-
keys := make([]string, len(attr))
115+
keys := make([]string, 0, len(attr))
116116

117117
for _, entry := range attr {
118118
keys = append(keys, entry.Key)

0 commit comments

Comments
 (0)