Skip to content

Commit

Permalink
removing deprecated linters
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Tanaka <[email protected]>
  • Loading branch information
pedro-stanaka committed Oct 25, 2023
1 parent f77ad91 commit 0239f9f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 0 additions & 3 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ output:
linters:
enable:
# Sorted alphabetically.
- deadcode
- errcheck
- goconst
- godot
Expand All @@ -43,11 +42,9 @@ linters:
- ineffassign
- misspell
- staticcheck
- structcheck
- typecheck
- unparam
- unused
- varcheck
- exportloopref
- promlinter

Expand Down
2 changes: 1 addition & 1 deletion execution/binary/vector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 0239f9f

Please sign in to comment.