Skip to content

refactor: simplify scp mode detection#350

Open
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/simplify-scp-mode-detection
Open

refactor: simplify scp mode detection#350
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/simplify-scp-mode-detection

Conversation

@tenthirtyam

Copy link
Copy Markdown

Description

Simplifies bytes.IndexByte using bytes.Contains.

Resolved Issues

Use direct byte membership checks because only flag presence matters, making the intent clearer and avoiding an unused index.

Rollback Plan

Revert commit.

Changes to Security Controls

None.

Use direct byte membership checks because only flag presence matters, making the intent clearer and avoiding an unused index.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam
tenthirtyam requested a review from a team as a code owner July 24, 2026 12:19
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