Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
Signed-off-by: liguozhong <[email protected]>

Signed-off-by: fuling <[email protected]>
  • Loading branch information
liguozhong committed Oct 19, 2023
1 parent 1f3281d commit b1b0c2c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions notifier/notifier.go
Original file line number Diff line number Diff line change
Expand Up @@ -626,15 +626,15 @@ func (a alertmanagerLabels) url() *url.URL {
}
}

func NewTarget(labels labels.Labels, discoveredLabels labels.Labels) Target {
return Target{labels, discoveredLabels}
}

type Target struct {
discoveredLabels labels.Labels
labels labels.Labels
}

func NewTarget(labels, discoveredLabels labels.Labels) Target {
return Target{labels, discoveredLabels}
}

func (a Target) Labels() labels.Labels {
lb := labels.NewBuilder(labels.EmptyLabels())
a.labels.Range(func(l labels.Label) {
Expand Down

0 comments on commit b1b0c2c

Please sign in to comment.