Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

refactor: switch to if (#17500)

p0nyc337b972158f
diff --git a/backend/api/v1/plan_service.go b/backend/api/v1/plan_service.go
index 936acc4633..9dff97861f 100644
--- a/backend/api/v1/plan_service.go
+++ b/backend/api/v1/plan_service.go
@@ -532,9 +532,7 @@ func (s *PlanService) UpdatePlan(ctx context.Context, request *connect.Request[v
// Flags for gh-ost.
if err := func() error {
- switch newTaskType {
- case storepb.Task_DATABASE_SCHEMA_UPDATE_GHOST:
- default:
+ if newTaskType != storepb.Task_DATABASE_SCHEMA_UPDATE_GHOST {
return nil
}