Skip to content

Commit

Permalink
ci(lint): fix linting issue by bumping the linter to v1.56.2
Browse files Browse the repository at this point in the history
  • Loading branch information
machi1990 committed Feb 29, 2024
1 parent 8a0cc00 commit 00ccc34
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/check-pull-request.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ jobs:
- name: Run the linter
uses: golangci/golangci-lint-action@v3
with:
version: v1.51.0
version: v1.56.2
args: --timeout 10m
skip-pkg-cache: true
skip-build-cache: true
Expand Down
2 changes: 1 addition & 1 deletion authentication/transport_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -516,7 +516,7 @@ func (b *TransportWrapperBuilder) Build(ctx context.Context) (result *TransportW
registered, ok := err.(prometheus.AlreadyRegisteredError)
if ok {
tokenCountMetric = registered.ExistingCollector.(*prometheus.CounterVec)
err = nil
err = nil //nolint:all
} else {
return
}
Expand Down
2 changes: 1 addition & 1 deletion metrics/handler_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ func (b *HandlerWrapperBuilder) Build() (result *HandlerWrapper, err error) {
registered, ok := err.(prometheus.AlreadyRegisteredError)
if ok {
requestCount = registered.ExistingCollector.(*prometheus.CounterVec)
err = nil
err = nil //nolint:all
} else {
return
}
Expand Down
2 changes: 1 addition & 1 deletion metrics/transport_wrapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ func (b *TransportWrapperBuilder) Build() (result *TransportWrapper, err error)
registered, ok := err.(prometheus.AlreadyRegisteredError)
if ok {
requestCount = registered.ExistingCollector.(*prometheus.CounterVec)
err = nil
err = nil //nolint:all
} else {
return
}
Expand Down

0 comments on commit 00ccc34

Please sign in to comment.