Skip to content

Remove unused index parameter from _isSectionHeader#200

Merged
ypopovych merged 2 commits into
sdtest-3516-bugfix-codeowners-parserfrom
copilot/sub-pr-199
Mar 9, 2026
Merged

Remove unused index parameter from _isSectionHeader#200
ypopovych merged 2 commits into
sdtest-3516-bugfix-codeowners-parserfrom
copilot/sub-pr-199

Conversation

Copilot AI commented Mar 9, 2026

Copy link
Copy Markdown
Contributor

_isSectionHeader(line:index:) declared an index: Int parameter that was never referenced in the function body — dead code that added noise to the signature.

Changes

  • CodeOwners.swift: Removed index: Int from _isSectionHeader, updated both call sites accordingly
// Before
static func _isSectionHeader(line: String, index: Int) -> Int? { ... }

// After
static func _isSectionHeader(line: String) -> Int? { ... }

💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Fix issues in codeowners parser based on feedback Remove unused index parameter from _isSectionHeader Mar 9, 2026
@ypopovych
ypopovych marked this pull request as ready for review March 9, 2026 18:24
@ypopovych
ypopovych requested review from a team as code owners March 9, 2026 18:24
@ypopovych
ypopovych merged commit 3827bfd into sdtest-3516-bugfix-codeowners-parser Mar 9, 2026
1 check passed
@ypopovych
ypopovych deleted the copilot/sub-pr-199 branch March 9, 2026 18:24
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