Skip to content

refactor: use slices.ContainsFunc to simplify code#5727

Open
daixihegu wants to merge 1 commit into
jesseduffield:masterfrom
daixihegu:master
Open

refactor: use slices.ContainsFunc to simplify code#5727
daixihegu wants to merge 1 commit into
jesseduffield:masterfrom
daixihegu:master

Conversation

@daixihegu

@daixihegu daixihegu commented Jun 24, 2026

Copy link
Copy Markdown

PR Description

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

Please check if the PR fulfills these requirements

  • Cheatsheets are up-to-date (run go generate ./...)
  • Code has been formatted (see here)
  • Tests have been added/updated (see here for the integration test guide)
  • Text is internationalised (see here)
  • If a new UserConfig entry was added, make sure it can be hot-reloaded (see here)
  • Docs have been updated if necessary
  • You've read through your own file changes for silly mistakes etc

Signed-off-by: daixihegu <daixihegu@163.com>
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