Skip to content

Commit

Permalink
linter updates again
Browse files Browse the repository at this point in the history
  • Loading branch information
evisdrenova committed Jul 20, 2024
1 parent 8516f3a commit 848cce3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/services/mgmt/v1alpha1/metrics-service/metrics.go
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ func getDailyUsageFromProm(ctx context.Context, api promv1.API, query string, st
errgrp.SetLimit(10)
mu := sync.Mutex{}
// Iterate through each day in the range
//nolint:gocritic
//nolint:all

Check failure on line 218 in backend/services/mgmt/v1alpha1/metrics-service/metrics.go

View workflow job for this annotation

GitHub Actions / golang-lint

directive `//nolint:all` is unused (nolintlint)
for d := start; !d.After(end); d = d.AddDate(0, 0, 1) {
d := d
errgrp.Go(func() error {
Expand Down
2 changes: 1 addition & 1 deletion worker/pkg/benthos/transformers/generate_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ func (t *GenerateState) Generate(opts any) (any, error) {
func generateRandomState(state_code bool) string {
stateData := transformers_dataset.States

//nolint:gosec
//nolint:all
randomIndex := rand.Intn(len(stateData))
gender := stateData[randomIndex].FullName

Expand Down

0 comments on commit 848cce3

Please sign in to comment.