fix: rename unused exportWithTags param to _ to satisfy revive

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
brngates98
2026-01-29 17:07:43 -05:00
parent 39b1b316a2
commit 86bc1c9d6d

View File

@@ -82,6 +82,7 @@ func (u *promUnifi) exportUDM(r report, d *unifi.UDM) {
u.exportWithTags(r, d.Tags, func(tagLabels []string) {
tag := tagLabels[0]
labels := baseLabels
infoLabels := append(baseInfoLabels, tag)
// Shared data (all devices do this).
@@ -129,10 +130,11 @@ func (u *promUnifi) exportUDM(r report, d *unifi.UDM) {
// exportWithTags exports metrics with tag support. If device has multiple tags,
// each tag creates a separate metric series. If no tags, exports with tag="".
func (u *promUnifi) exportWithTags(r report, tags []string, fn func([]string)) {
func (u *promUnifi) exportWithTags(_ report, tags []string, fn func([]string)) {
if len(tags) == 0 {
// No tags - export once with empty tag
fn([]string{""})
return
}
// Multiple tags - export once per tag