Skip to content

Refactor environment validity check into separate function#13025

Merged
zanieb merged 1 commit intomainfrom
zb/project-env-valid
Apr 21, 2025
Merged

Refactor environment validity check into separate function#13025
zanieb merged 1 commit intomainfrom
zb/project-env-valid

Conversation

@zanieb
Copy link
Member

@zanieb zanieb commented Apr 21, 2025

Now, we can use early returns! Pulled out of #7934, where we're adding more logic here.

@zanieb zanieb added the internal A refactor or improvement that is not user-facing label Apr 21, 2025
@zanieb zanieb force-pushed the zb/project-env-valid branch from 225d4c4 to 89cc869 Compare April 21, 2025 22:07
@zanieb zanieb force-pushed the zb/project-env-valid branch from 89cc869 to 1de7a6c Compare April 21, 2025 22:09
@zanieb zanieb enabled auto-merge (squash) April 21, 2025 22:14
@zanieb zanieb merged commit cda72b2 into main Apr 21, 2025
85 checks passed
@zanieb zanieb deleted the zb/project-env-valid branch April 21, 2025 22:17
zanieb added a commit that referenced this pull request Apr 25, 2025
When working on #13025 I noticed this message was lacking versions,
which seems frustrating if you're debugging things.

I refactored the general `matches_interpreter` utilities that were added
in #12884 into a more purpose-fit
function that returns an `Option` with the versions if there's a
mismatch.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

internal A refactor or improvement that is not user-facing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant