Skip to content

Commit

Permalink
rm unneeded error declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
jon4skl committed Nov 5, 2024
1 parent 21370be commit ed62bc0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions internal/api/kubernetes/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const (
componentName = "kubedownscaler"
)

var errResourceNotSupported = errRessourceNotSupported

// Client is an interface representing a high-level client to get and modify Kubernetes resources
type Client interface {
// GetNamespaceAnnotations gets the annotations of the workload's namespace
Expand Down Expand Up @@ -101,7 +99,7 @@ func (c client) GetWorkloads(namespaces []string, resourceTypes []string, ctx co
slog.Debug("getting workloads from resource type", "resourceType", resourceType)
getWorkloads, ok := scalable.GetWorkloads[strings.ToLower(resourceType)]
if !ok {
return nil, errResourceNotSupported
return nil, errRessourceNotSupported
}
workloads, err := getWorkloads(namespace, c.clientsets, ctx)
if err != nil {
Expand Down

0 comments on commit ed62bc0

Please sign in to comment.