Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix get env typespec #18

Merged
merged 4 commits into from
Jul 8, 2017
Merged

Conversation

zachdaniel
Copy link
Contributor

@zachdaniel zachdaniel commented Jul 7, 2017

Fixes #17

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 541185f on albert-io:fix-get-env-typespec into dcb0f8c on Nebo15:master.

lib/confex.ex Outdated
@@ -180,7 +180,7 @@ can not resolve key MY_TEST_ENV value via adapter Elixir.Confex.Adapters.SystemE
...> 1 = #{__MODULE__}.get_env(:myapp, :test_var)
1
"""
@spec get_env(app :: Application.app(), key :: Application.key()) :: {:ok, Application.value()} | {:error, any()}
@spec get_env(app :: Application.app(), key :: Application.key(), term) :: Application.value()
Copy link
Member

@AndrewDryga AndrewDryga Jul 7, 2017

Choose a reason for hiding this comment

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

Can you, please, name the third argument as it is named in function definition?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Will do, thanks!

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 1729454 on albert-io:fix-get-env-typespec into dcb0f8c on Nebo15:master.

@zachdaniel
Copy link
Contributor Author

Wasn't sure how you would prefer the line broken. Happy to change it according to your preferences.

@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling 19978f3 on albert-io:fix-get-env-typespec into dcb0f8c on Nebo15:master.

@AndrewDryga
Copy link
Member

Great job, thanks! 👍

@AndrewDryga AndrewDryga merged commit e820499 into Nebo15:master Jul 8, 2017
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.

None yet

3 participants