镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

Remove unreachable duplicate RepositoryFeature branch in RepositoryTreeLabelProvider - #7149

Merged
peterkir merged 2 commits into
ecl-fea-supportfrom
copilot/sub-pr-7124-another-one
Mar 15, 2026
Merged

peterkir merged 2 commits into
ecl-fea-supportfrom
copilot/sub-pr-7124-another-one

Conversation

Copilot AI commented Mar 15, 2026 •

Copy link
Copy Markdown
Contributor

RepositoryFeature was handled twice in the same else-if chain in RepositoryTreeLabelProvider, making the second branch (previously lines 165–175) dead code that could never be reached.

  • Removed the duplicate else if (element instanceof RepositoryFeature) block, keeping only the first occurrence (lines 109–120) which is correctly ordered before RepositoryBundle (both extend RepositoryEntry)

🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.

…eeLabelProvider

Co-authored-by: peterkir <250545+peterkir@users.noreply.github.com>
Copilot AI changed the title [WIP] [WIP] Address feedback on PR for Eclipse features Remove unreachable duplicate RepositoryFeature branch in RepositoryTreeLabelProvider Mar 15, 2026
Copilot AI requested a review from peterkir March 15, 2026 15:35
@peterkir
peterkir marked this pull request as ready for review March 15, 2026 15:43
@peterkir
peterkir merged commit ee3784a into ecl-fea-support Mar 15, 2026
20 checks passed
@peterkir
peterkir deleted the copilot/sub-pr-7124-another-one branch March 15, 2026 17:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants