Skip to content

Commit

Permalink
Fixup linter warning (#406)
Browse files Browse the repository at this point in the history
Fixup warning:
> S1005: unnecessary assignment to the blank identifier (gosimple)

Signed-off-by: SuperQ <superq@gmail.com>
  • Loading branch information
SuperQ authored Jan 16, 2025
1 parent a98e977 commit 22448b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stackdriver_exporter.go
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ func (h *handler) filterMetricTypePrefixes(filters map[string]bool) []string {
if len(filters) > 0 {
filteredPrefixes = nil
for _, prefix := range h.metricsPrefixes {
for filter, _ := range filters {
for filter := range filters {
if strings.HasPrefix(filter, prefix) {
filteredPrefixes = append(filteredPrefixes, filter)
}
Expand Down

0 comments on commit 22448b1

Please sign in to comment.