Skip to content

Commit

Permalink
fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Richard87 committed Jan 9, 2025
1 parent 9ae04c9 commit b7ecf97
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
5 changes: 0 additions & 5 deletions api/metrics/metrics_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package metrics
import (
"context"
"math"
"regexp"
"strings"

applicationModels "github.com/equinor/radix-api/api/applications/models"
Expand All @@ -13,10 +12,6 @@ const (
DefaultDuration = "24h"
)

var (
envNameRequirement = regexp.MustCompile(`^(([a-z0-9][-a-z0-9]*)?[a-z0-9])?$`)
)

type LabeledResults struct {
Value float64
Namespace string
Expand Down
2 changes: 0 additions & 2 deletions api/metrics/prometheus/prometheus_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@ type QueryAPI interface {
Query(ctx context.Context, query string, ts time.Time, opts ...prometheusV1.Option) (model.Value, prometheusV1.Warnings, error)
}

var ErrInvalidNamespace = errors.New("invalid namespace character ` or \"")

type Client struct {
api QueryAPI
}
Expand Down

0 comments on commit b7ecf97

Please sign in to comment.