Skip to content

Conversation

eksperimental
Copy link
Contributor

I was getting some Erlang error when passing the wrong types of arguments to Application.delete_env/3

 ** (FunctionClauseError) no function clause matching in :application.unset_env/3

 The following arguments were given to :application.unset_env/3:

     # 1
     :my_app

     # 2
     :the_key

     # 3
     nil

So this PR adds guards wherever arguments can be guarded.

Copy link
Contributor

@sabiwara sabiwara left a comment

Choose a reason for hiding this comment

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

LGTM 💜

@josevalim josevalim merged commit b5885a6 into elixir-lang:main Aug 1, 2025
13 checks passed
@josevalim
Copy link
Member

💚 💙 💜 💛 ❤️

@eksperimental eksperimental deleted the chore/application-guards branch August 1, 2025 13:24
ggVGc pushed a commit to ggVGc/elixir-verbatim that referenced this pull request Sep 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants