这是indexloc提供的服务,不要输入任何密码
Skip to content

refactor(turborepo-updater): chain environment variable iterators in should_skip_notification #10622

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Conversation

JeongHwan-dev
Copy link
Contributor

Description

Optimizes the should_skip_notification() function by combining two separate environment variable checks into a single chained iterator operation.

Changes

  • Before: Two separate .any() calls on NOTIFIER_DISABLE_VARS and ENVIRONMENTAL_DISABLE_VARS
  • After: Single chained iterator using .chain() method

Benefits

  • Improved readability: Cleaner, more idiomatic Rust code
  • Reduced redundancy: Eliminates duplicate iteration logic
  • Better maintainability: Follows Rust iterator best practices
  • Same functionality: Zero behavioral changes

…should_skip_notification

Replace two separate .any() calls with a single chained iterator in
should_skip_notification() function. This eliminates redundant iterations
over environment variables and improves code readability while maintaining
identical functionality.
@JeongHwan-dev JeongHwan-dev requested a review from a team as a code owner July 1, 2025 12:28
@turbo-orchestrator turbo-orchestrator bot added the needs: triage New issues get this label. Remove it after triage label Jul 1, 2025
Copy link

vercel bot commented Jul 1, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
examples-basic-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 0:30am
examples-designsystem-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 0:30am
examples-native-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 0:30am
examples-tailwind-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 0:30am
examples-vite-web ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 1, 2025 0:30am

Copy link

vercel bot commented Jul 1, 2025

@JeongHwan-dev is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

@anthonyshew anthonyshew merged commit 6f9c0c8 into vercel:main Jul 1, 2025
35 of 40 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs: triage New issues get this label. Remove it after triage
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants