-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: using slices.Contains to simplify the code (#13544)
This is a [new function](https://pkg.go.dev/[email protected]#Contains) added in the go1.21 standard library, which can make the code more concise and easy to read. Signed-off-by: damuzhi0810 <[email protected]>
- Loading branch information
1 parent
989e5d5
commit 907c9ae
Showing
2 changed files
with
2 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters