Skip to content

refactor: replace substr with slice and remove dead code in singleContainer.ts#1177

Merged
chrmarti merged 1 commit intodevcontainers:mainfrom
ishwar170695:refactor/substr-slice-dead-code
Apr 14, 2026
Merged

refactor: replace substr with slice and remove dead code in singleContainer.ts#1177
chrmarti merged 1 commit intodevcontainers:mainfrom
ishwar170695:refactor/substr-slice-dead-code

Conversation

@ishwar170695
Copy link
Copy Markdown
Contributor

What:
Replace .substr() with .slice() in findUserArg (singleContainer.ts L293)
Remove commented-out dead code block for collapsedFeaturesConfig

Reason: .substr() is a legacy method flagged by MDN. .slice() is the modern equivalent with identical semantics here. The dead code block is unreachable and no longer referenced anywhere in the codebase.

@ishwar170695 ishwar170695 requested a review from a team as a code owner March 18, 2026 04:53
Copy link
Copy Markdown
Contributor

@chrmarti chrmarti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@chrmarti chrmarti enabled auto-merge (rebase) April 14, 2026 12:53
@chrmarti chrmarti merged commit da642b4 into devcontainers:main Apr 14, 2026
22 of 23 checks passed
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