Skip to content

refactor: use slices.Contains to simplify code#6243

Merged
dogancanbakir merged 1 commit intoprojectdiscovery:devfrom
tongjicoder:dev
May 27, 2025
Merged

refactor: use slices.Contains to simplify code#6243
dogancanbakir merged 1 commit intoprojectdiscovery:devfrom
tongjicoder:dev

Conversation

@tongjicoder
Copy link
Contributor

@tongjicoder tongjicoder commented May 27, 2025

Proposed changes

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

Checklist

  • Pull request is created against the dev branch
  • All checks passed (lint, unit/integration/regression tests etc.) with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Signed-off-by: tongjicoder <tongjicoder@icloud.com>
@auto-assign auto-assign bot requested a review from dogancanbakir May 27, 2025 09:27
@dogancanbakir
Copy link
Member

@tongjicoder Thanks for the PR!

@dogancanbakir dogancanbakir merged commit a4859df into projectdiscovery:dev May 27, 2025
19 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