Skip to content

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

Open
ishwar170695 wants to merge 1 commit intodevcontainers:mainfrom
ishwar170695:refactor/substr-slice-dead-code
Open

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

Conversation

@ishwar170695
Copy link

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
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.

1 participant