Skip to content

Commit efdff17

Browse files
committed
Add missing return statement to fix crash in healthcheck controller
1 parent 3687d04 commit efdff17

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/console/controllers/healthcheck/controller.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ func (c *HealthCheckController) Sync(ctx context.Context, controllerContext fact
137137
activeRoute, activeRouteErr := c.routeLister.Routes(api.OpenShiftConsoleNamespace).Get(activeRouteName)
138138
statusHandler.AddConditions(status.HandleProgressingOrDegraded("RouteHealth", "FailedRouteGet", activeRouteErr))
139139
if activeRouteErr != nil {
140-
statusHandler.FlushAndReturn(activeRouteErr)
140+
return statusHandler.FlushAndReturn(activeRouteErr)
141141
}
142142

143143
routeHealthCheckErrReason, routeHealthCheckErr := c.CheckRouteHealth(ctx, updatedOperatorConfig, activeRoute)

0 commit comments

Comments
 (0)