Skip to content

refactor: use slices.Contains to simplify code#329

Merged
rem1niscence merged 1 commit intocanopy-network:mainfrom
tsinglua:main
Mar 11, 2026
Merged

refactor: use slices.Contains to simplify code#329
rem1niscence merged 1 commit intocanopy-network:mainfrom
tsinglua:main

Conversation

@tsinglua
Copy link
Contributor

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

Signed-off-by: tsinglua <tsinglua@outlook.com>
Copy link
Collaborator

@rem1niscence rem1niscence left a comment

Choose a reason for hiding this comment

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

thanks!

@rem1niscence rem1niscence merged commit 3b840d3 into canopy-network:main Mar 11, 2026
2 checks passed
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.

2 participants