Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: liguozhong <[email protected]>
  • Loading branch information
liguozhong committed Oct 11, 2023
1 parent 0478015 commit 066770f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions notifier/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,7 @@ func (a Target) Labels() labels.Labels {

func (a Target) DiscoveredLabels() labels.Labels {
lset := labels.Labels{}
for _, l := range a.discoveredLabels {
lset = append(lset, l)
}
lset = append(lset, a.discoveredLabels...)

Check failure on line 654 in notifier/notifier.go

View workflow job for this annotation

GitHub Actions / codeql / Analyze (go)

first argument to append must be a slice; have lset (variable of type labels.Labels)
return lset
}

Expand Down

0 comments on commit 066770f

Please sign in to comment.