Commit 14631f8
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
489 | 489 | | |
490 | 490 | | |
491 | 491 | | |
| 492 | + | |
492 | 493 | | |
493 | | - | |
494 | 494 | | |
495 | 495 | | |
496 | 496 | | |
| |||
0 commit comments