Skip to content

Conversation

@nadav-govari
Copy link
Collaborator

Description

If the env var exists but there was a problem parsing the version, it might return Some(""), which we don't want.

@nadav-govari nadav-govari marked this pull request as ready for review January 21, 2026 19:41
@nadav-govari nadav-govari requested a review from guilload January 21, 2026 19:41
.availability_zone
.resolve_optional(env_vars)?
// if the env var is empty, it'll return Some(""), and we don't want that.
.filter(|str| !str.is_empty());
Copy link
Member

Choose a reason for hiding this comment

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

Let's push that logic into resolve_optional.

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.

3 participants