Skip to content

Commit 8b6e062

Browse files
committed
fix: lint with 2.8.0
Signed-off-by: Wen Zhou <wenzhou@redhat.com>
1 parent befba84 commit 8b6e062

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/plugins/scorer/precise_prefix_cache_uds_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ func TestPrefixCacheTracking_Score_UDS(t *testing.T) {
219219
require.NotNil(t, req.ChatCompletions, "req expected to use ChatCompletions API")
220220

221221
// convert to types format
222-
var conversations []types.Conversation
222+
conversations := make([]types.Conversation, 0, len(req.ChatCompletions.Messages))
223223
for _, msg := range req.ChatCompletions.Messages {
224224
conversations = append(conversations, types.Conversation{
225225
Role: msg.Role,

0 commit comments

Comments
 (0)