From 0239f9fbf2db65a3d935076ac12dfe5c4c53c973 Mon Sep 17 00:00:00 2001 From: Pedro Tanaka Date: Wed, 25 Oct 2023 14:57:51 +0200 Subject: [PATCH] removing deprecated linters Signed-off-by: Pedro Tanaka --- .golangci.yml | 3 --- execution/binary/vector.go | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/.golangci.yml b/.golangci.yml index 184a4dfa..486d6ea3 100644 --- a/.golangci.yml +++ b/.golangci.yml @@ -32,7 +32,6 @@ output: linters: enable: # Sorted alphabetically. - - deadcode - errcheck - goconst - godot @@ -43,11 +42,9 @@ linters: - ineffassign - misspell - staticcheck - - structcheck - typecheck - unparam - unused - - varcheck - exportloopref - promlinter diff --git a/execution/binary/vector.go b/execution/binary/vector.go index 22e907d3..37ebe5d2 100644 --- a/execution/binary/vector.go +++ b/execution/binary/vector.go @@ -505,7 +505,7 @@ func signatureFunc(on bool, names ...string) func(labels.Labels) uint64 { // Lifted from: https://github.com/prometheus/prometheus/blob/a38179c4e183d9b50b271167bf90050eda8ec3d1/promql/engine.go#L2430. // TODO: call with histogram values in followup PR. -func vectorElemBinop(op parser.ItemType, lhs, rhs float64, hlhs, hrhs *histogram.FloatHistogram) (float64, *histogram.FloatHistogram, bool) { +func vectorElemBinop(op parser.ItemType, lhs, rhs float64, hlhs, hrhs *histogram.FloatHistogram) (float64, *histogram.FloatHistogram, bool) { //nolint:unparam switch op { case parser.ADD: if hlhs != nil && hrhs != nil {