Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: replace isStringInSlice with slices.Contains #674

Merged
merged 1 commit into from
May 20, 2024
Merged

Conversation

displague
Copy link
Member

Remove isStringInSlice in favor of slices.Contains.

Extracted from #622
Related to #665

@displague displague requested review from a team as code owners May 10, 2024 02:52
@ctreatma ctreatma removed the request for review from a team May 10, 2024 18:19
Copy link
Contributor

@ctreatma ctreatma left a comment

Choose a reason for hiding this comment

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

DRE sign-off is required because these changes touch provider.go, but codeowner review should be obtained for the other files.

Copy link
Contributor

@thogarty thogarty left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks @displague

Copy link
Contributor

@rling-equinix rling-equinix left a comment

Choose a reason for hiding this comment

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

LGTM.

@ctreatma ctreatma merged commit 3cfe64e into main May 20, 2024
4 of 5 checks passed
@ctreatma ctreatma deleted the extra_slices branch May 20, 2024 15:06
ctreatma pushed a commit that referenced this pull request Jul 11, 2024
This PR moves the helper functions from provider.go to a new comparisons
package. This package will be used by provider, tests, and resources.
The refactoring will assist with splitting resources into resource
specific packages. #106

The previous helper functions have been deprecated and will be removed
in a future commit.

Extracted from #622 (PR grew to large to maintain. Refactoring is not a
priority and rebasing gets hard as the underlying code changes)

Related to #674
Related to #654

Signed-off-by: Marques Johansson <[email protected]>
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.

4 participants