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

using slices.Contains to simplify the code #7837

Open
dashangcun opened this issue Jan 10, 2025 · 1 comment
Open

using slices.Contains to simplify the code #7837

dashangcun opened this issue Jan 10, 2025 · 1 comment

Comments

@dashangcun
Copy link

dashangcun commented Jan 10, 2025

This is a new function added in the go1.21 standard library, which can make the code more concise and easy to read.

The specific code is similar to https://github.com/cosmos/ibc-go/pull/7833/files.

If this issue can be approved by the maintainer, I would be happy to find such optimizations for all go projects under the cosmos organization.

@gjermundgaraba
Copy link
Contributor

I think this would be nice to use. Have you had a chance to see approximately how many places this would be possible to use in ibc-go?

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

No branches or pull requests

2 participants