Skip to content

refactor: use slices.Contains to simplify code#2568

Open
jishudashen wants to merge 1 commit into
ten-protocol:mainfrom
jishudashen:main
Open

refactor: use slices.Contains to simplify code#2568
jishudashen wants to merge 1 commit into
ten-protocol:mainfrom
jishudashen:main

Conversation

@jishudashen
Copy link
Copy Markdown

@jishudashen jishudashen commented Jul 18, 2025

Why this change is needed

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

What changes were made as part of this PR

Please provide a high level list of the changes made

PR checks pre-merging

Please indicate below by ticking the checkbox that you have read and performed the required
PR checks

  • PR checks reviewed and performed

Signed-off-by: jishudashen <jishudashen@foxmail.com>
@jishudashen
Copy link
Copy Markdown
Author

@tudor-malene Hi, Could you please review this PR when you have time? Thanks!

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