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.
This commit is contained in:
@@ -535,7 +535,7 @@ func supersedeOldReviews(ctx context.Context, client vcs.Client, provider, vcsUR
|
|||||||
}
|
}
|
||||||
return nil
|
return nil
|
||||||
case "gitea":
|
case "gitea":
|
||||||
// Gitea: EditComment + ResolveComment flow
|
// Fall through to Gitea-specific logic below the switch.
|
||||||
default:
|
default:
|
||||||
return fmt.Errorf("supersedeOldReviews: unsupported provider %q", provider)
|
return fmt.Errorf("supersedeOldReviews: unsupported provider %q", provider)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user