Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backend/env: treat empty environment variables as not found (#78)
It's very unusual to distinguish between an environment variable that's unset and one that's empty. When a value is required, looking for a non-empty environment variable feels more correct. As a recent example, the kafka-go config contained a "required" entry for `KAFKA_ADDRS` which was satisfied by an empty environment variable.
- Loading branch information
Showing
2 changed files
with
11 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters