From 64ff7cfe2b444f941d79e42bc1dd57a4aff12cd1 Mon Sep 17 00:00:00 2001 From: claw Date: Wed, 13 May 2026 02:35:59 -0700 Subject: [PATCH] fix(cmd): clarify empty gitea case control flow in supersedeOldReviews The empty case "gitea": body exits the switch and continues to the Gitea-specific logic below. Replace the vague comment with an explicit note about the fall-through intent, per self-review feedback. --- cmd/review-bot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/review-bot/main.go b/cmd/review-bot/main.go index ca42dfb..e5baaca 100644 --- a/cmd/review-bot/main.go +++ b/cmd/review-bot/main.go @@ -535,7 +535,7 @@ func supersedeOldReviews(ctx context.Context, client vcs.Client, provider, vcsUR } return nil case "gitea": - // Gitea: EditComment + ResolveComment flow + // Fall through to Gitea-specific logic below the switch. default: return fmt.Errorf("supersedeOldReviews: unsupported provider %q", provider) }