Skip to content

refactor: simplify membership checks#345

Open
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/simplify-membership-checks
Open

refactor: simplify membership checks#345
tenthirtyam wants to merge 1 commit into
hashicorp:mainfrom
tenthirtyam:refactor/simplify-membership-checks

Conversation

@tenthirtyam

Copy link
Copy Markdown

Description

Replace manual search loops with slices.Contains.

Resolved Issues

For comparable element types, slices.Contains performs the same check in one call.

Rollback Plan

Revert commit.

Changes to Security Controls

None.

@tenthirtyam
tenthirtyam requested a review from a team as a code owner July 24, 2026 03:48
Replace manual search loops with `slices.Contains`.

Signed-off-by: Ryan Johnson <ryan@tenthirtyam.org>
@tenthirtyam
tenthirtyam force-pushed the refactor/simplify-membership-checks branch from 989bd57 to a9d4945 Compare July 25, 2026 17:56
@tenthirtyam

Copy link
Copy Markdown
Author

Hi @tanmay-hc,

The CI failure was a missing import. Can you rerun the CI when time permits? TY!

Ryan Johnson

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