Skip to content

Commit

Permalink
Remove unnecessary conversion
Browse files Browse the repository at this point in the history
Signed-off-by: damas <19289022+cyrilico@users.noreply.github.com>
  • Loading branch information
cyrilico committed Apr 11, 2024
1 parent f7661de commit 3b4ca9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scalers/dynatrace_scaler.go
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ func (s *dynatraceScaler) GetMetricValue(ctx context.Context) (float64, error) {
return 0, err
}

return float64(dynatraceResponse.Result[0].Data[0].Values[0]), nil
return dynatraceResponse.Result[0].Data[0].Values[0], nil
}

func (s *dynatraceScaler) GetMetricsAndActivity(ctx context.Context, metricName string) ([]external_metrics.ExternalMetricValue, bool, error) {
Expand Down

0 comments on commit 3b4ca9d

Please sign in to comment.