Skip to content

Commit

Permalink
pkg/tasks/metricsserver.go: Fix nit
Browse files Browse the repository at this point in the history
Signed-off-by: Jayapriya Pai <janantha@redhat.com>
  • Loading branch information
slashpai committed Jul 6, 2023
1 parent 8a7f3a3 commit a3a5d82
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions pkg/tasks/metricsserver.go
Expand Up @@ -146,7 +146,6 @@ func (t *MetricsServerTask) create(ctx context.Context) error {
}
}
}
// Add check before updating APIService
{
api, err := t.factory.MetricsServerAPIService()
if err != nil {
Expand All @@ -158,7 +157,6 @@ func (t *MetricsServerTask) create(ctx context.Context) error {
return errors.Wrap(err, "reconciling MetricsServer APIService failed")
}
}

{
pa := NewPrometheusAdapterTask(ctx, t.namespace, t.client, t.factory, t.config)
if err := pa.destroy(ctx); err != nil {
Expand Down

0 comments on commit a3a5d82

Please sign in to comment.