Skip to content

Commit 94215c0

Browse files
Merge pull request #900 from TheRealJon/OCPBUGS-33505
OCPBUGS-33505: Add missing return statement to fix crash in healthcheck controller
2 parents ccb152a + efdff17 commit 94215c0

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
@@ -139,7 +139,7 @@ func (c *HealthCheckController) Sync(ctx context.Context, controllerContext fact
139139
activeRoute, activeRouteErr := c.routeClient.Routes(api.OpenShiftConsoleNamespace).Get(ctx, activeRouteName, metav1.GetOptions{})
140140
statusHandler.AddConditions(status.HandleProgressingOrDegraded("RouteHealth", "FailedRouteGet", activeRouteErr))
141141
if activeRouteErr != nil {
142-
statusHandler.FlushAndReturn(activeRouteErr)
142+
return statusHandler.FlushAndReturn(activeRouteErr)
143143
}
144144

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

0 commit comments

Comments
 (0)