Skip to content

bin/brew: simplify filtering of BIN_BREW_EXPORTED_VARS#21697

Merged
carlocab merged 1 commit intomainfrom
remove-double-loop
Mar 9, 2026
Merged

bin/brew: simplify filtering of BIN_BREW_EXPORTED_VARS#21697
carlocab merged 1 commit intomainfrom
remove-double-loop

Conversation

@carlocab
Copy link
Member

@carlocab carlocab commented Mar 9, 2026

  • Have you followed the guidelines in our Contributing document?
  • Have you checked to ensure there aren't other open Pull Requests for the same change?
  • Have you added an explanation of what your changes do and why you'd like us to include them?
  • Have you written new tests for your changes? Here's an example.
  • Have you successfully run brew lgtm (style, typechecking and tests) with your changes locally?

  • AI was used to generate or assist with generating this PR. Please specify below how you used AI to help you, and what steps you have taken to manually verify the changes.

Looping over BIN_BREW_EXPORTED_VARS for each line of an env file is
relatively inefficient. We can avoid this by constructing a regex before
the loop and using that regex to match against the lines we want to
skip.

Looping over `BIN_BREW_EXPORTED_VARS` for each line of an env file is
relatively inefficient. We can avoid this by constructing a regex before
the loop and using that regex to match against the lines we want to
skip.
Copilot AI review requested due to automatic review settings March 9, 2026 10:03
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

@carlocab carlocab added this pull request to the merge queue Mar 9, 2026
Merged via the queue into main with commit e5c91bf Mar 9, 2026
38 checks passed
@carlocab carlocab deleted the remove-double-loop branch March 9, 2026 12:08
Copy link
Member

@MikeMcQuaid MikeMcQuaid left a comment

Choose a reason for hiding this comment

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

Nice cleanup, thanks @carlocab!

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.

4 participants