Skip to content

fix: system tuple for boolean values#5

Open
alexdeleon wants to merge 1 commit intomrluc:masterfrom
alexdeleon:fix-boolean-env-var
Open

fix: system tuple for boolean values#5
alexdeleon wants to merge 1 commit intomrluc:masterfrom
alexdeleon:fix-boolean-env-var

Conversation

@alexdeleon
Copy link

The bugs occur when you want to use an environment variable for boolean config and the default is true.

For example:

bool_conf: {:system, "BOOLEAN", true, {String, :to_atom}}

The fix is simple, we use a case statement to detect nil instead of using the || operator

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.

1 participant