Skip to content

Commit

Permalink
chore(monitor): Change finalizer var to const
Browse files Browse the repository at this point in the history
  • Loading branch information
gabe565 committed Apr 16, 2024
1 parent f0e0fbe commit 6bd49bd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions internal/controller/monitor_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ func (r *MonitorReconciler) Reconcile(ctx context.Context, req ctrl.Request) (ct
}
urclient := uptimerobot.NewClient(apiKey)

myFinalizerName := "uptime-robot.clevyr.com/finalizer"

const myFinalizerName = "uptime-robot.clevyr.com/finalizer"
if !monitor.DeletionTimestamp.IsZero() {
// Object is being deleted
if controllerutil.ContainsFinalizer(monitor, myFinalizerName) {
Expand Down

0 comments on commit 6bd49bd

Please sign in to comment.