Skip to content

Commit

Permalink
chore(deps): Bump golangci-lint from v1.57.2 to v1.58.0 (#15303)
Browse files Browse the repository at this point in the history
  • Loading branch information
powersj committed May 7, 2024
1 parent 82de390 commit 5dcc70b
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 25 deletions.
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ jobs:
- run: 'make check-deps'
- run:
name: "Install golangci-lint"
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.0
- run:
name: "golangci-lint/Linux"
command: GOGC=80 GOMEMLIMIT=6656MiB /go/bin/golangci-lint run --verbose
Expand All @@ -112,7 +112,7 @@ jobs:
- check-changed-files-or-halt
- run:
name: "Install golangci-lint"
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.0
- run:
name: "golangci-lint/macOS"
command: GOGC=80 GOMEMLIMIT=6656MiB GOOS=darwin /go/bin/golangci-lint run --verbose --timeout=30m
Expand All @@ -124,7 +124,7 @@ jobs:
- check-changed-files-or-halt
- run:
name: "Install golangci-lint"
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
command: go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.0
- run:
name: "golangci-lint/Windows"
command: GOGC=80 GOMEMLIMIT=6656MiB GOOS=windows /go/bin/golangci-lint run --verbose --timeout=30m
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ vet:
.PHONY: lint-install
lint-install:
@echo "Installing golangci-lint"
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.57.2
go install github.com/golangci/golangci-lint/cmd/golangci-lint@v1.58.0

@echo "Installing markdownlint"
npm install -g markdownlint-cli
Expand Down
7 changes: 0 additions & 7 deletions models/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -251,10 +251,3 @@ func (b *Buffer) resetBatch() {
b.batchFirst = 0
b.batchSize = 0
}

func min(a, b int) int {
if b < a {
return b
}
return a
}
7 changes: 0 additions & 7 deletions plugins/outputs/dynatrace/dynatrace.go
Original file line number Diff line number Diff line change
Expand Up @@ -261,10 +261,3 @@ func (d *Dynatrace) getTypeOption(metric telegraf.Metric, field *telegraf.Field)

return nil
}

func min(a, b int) int {
if a <= b {
return a
}
return b
}
7 changes: 0 additions & 7 deletions plugins/processors/topk/topk.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,13 +190,6 @@ func (t *TopK) Apply(in ...telegraf.Metric) []telegraf.Metric {
return []telegraf.Metric{}
}

func min(a, b int) int {
if a > b {
return b
}
return a
}

func convert(in interface{}) (float64, bool) {
switch v := in.(type) {
case float64:
Expand Down

0 comments on commit 5dcc70b

Please sign in to comment.