Skip to content

Commit 14631f8

Browse files
committed
fix: sync.Map copy in go vet — use pointer assignment
_ = toolMsgIDs copies the sync.Map value, triggering: 'assignment copies lock value to _: sync.Map contains sync.noCopy' Using _ = &toolMsgIDs avoids the copy while still suppressing the unused-variable warning.
1 parent 3179b33 commit 14631f8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmd/odek/telegram_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -489,8 +489,8 @@ func TestEngagingMode_UsesEdits(t *testing.T) {
489489
}
490490

491491
iterCallback := func(info loop.IterationInfo) {
492+
_ = &toolMsgIDs
492493
_ = truncateWords
493-
_ = toolMsgIDs
494494
_ = truncate
495495
if info.IsPreTool && info.ReasoningContent != "" {
496496
bot.SendMessage(chatID, "💭 "+truncateWords(info.ReasoningContent, 50),

0 commit comments

Comments
 (0)