diff --git a/pkg/scalers/metrics_api_scaler.go b/pkg/scalers/metrics_api_scaler.go index 509c2278c72..6c12fef45ec 100644 --- a/pkg/scalers/metrics_api_scaler.go +++ b/pkg/scalers/metrics_api_scaler.go @@ -72,7 +72,6 @@ func metricsAPIMetadata(resolvedEnv, metadata, authParams map[string]string) (*m return &meta, nil } - func (s *metricsAPIScaler) getMetricInfo() (*metric, error) { var m *metric u := fmt.Sprintf("%s/metrics/%s/", s.metadata.url, s.metadata.metricName) diff --git a/pkg/scalers/metrics_api_scaler_test.go b/pkg/scalers/metrics_api_scaler_test.go index 6faaa14f41b..4702de86ab6 100644 --- a/pkg/scalers/metrics_api_scaler_test.go +++ b/pkg/scalers/metrics_api_scaler_test.go @@ -7,7 +7,7 @@ import ( var metricsAPIResolvedEnv = map[string]string{} type metricsAPIMetadataTestData struct { - metadata map[string]string + metadata map[string]string raisesError bool }