From c5bc807d2c57db5d5b740ec165049b1218035129 Mon Sep 17 00:00:00 2001 From: claw Date: Wed, 13 May 2026 04:33:33 -0700 Subject: [PATCH] fix(cmd): remove duplicate doc comment and double blank line --- cmd/review-bot/main.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/cmd/review-bot/main.go b/cmd/review-bot/main.go index e1cd719..85927cf 100644 --- a/cmd/review-bot/main.go +++ b/cmd/review-bot/main.go @@ -530,7 +530,6 @@ func verdictToEvent(verdict string) vcs.ReviewEvent { } } -// supersedeOldReviews marks old reviews as superseded. // supersedeOldReviews marks prior reviews as superseded so only the latest review is visible. // For GitHub: dismisses old reviews (vcsURL is unused in this path). // For Gitea: edits the review body with a link to the new review and resolves inline comments. @@ -557,7 +556,6 @@ func supersedeOldReviews(ctx context.Context, client vcs.Client, provider, vcsUR return fmt.Errorf("supersedeOldReviews: unsupported provider %q", provider) } - // The type assertion below is guaranteed to succeed: the caller's provider switch // ensures we only reach this point when provider == "gitea", and the gitea provider // always constructs a *gitea.Adapter. The !ok branch guards against future refactors