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 Mix.Config warnings #139

Merged
merged 4 commits into from
Apr 10, 2024
Merged

Fix Mix.Config warnings #139

merged 4 commits into from
Apr 10, 2024

Conversation

bradhanks
Copy link
Contributor

No description provided.

@@ -3,7 +3,7 @@ defmodule Bypass.Utils do

Application.load(:bypass)

if Application.get_env(:bypass, :enable_debug_log, false) do
if Application.compile_env(:bypass, :enable_debug_log, false) do

Choose a reason for hiding this comment

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

this will break the enable_debug_log macro. maybe this is better? d034256

bradhanks and others added 3 commits April 10, 2024 09:16
Remove warning:

Compiling 5 files (.ex)
    warning: Application.get_env/3 is discouraged in the module body, use Application.compile_env/3 instead
    │
  6 │   if Application.get_env(:bypass, :enable_debug_log, false) do
    │                  ~
    │
    └─ lib/bypass/utils.ex:6:18: Bypass.Utils (module)
&Application.compile_env!/2 is available since 1.10.0, whereas
the &Application.compile_env/3 since 1.14.0.
@bszaf bszaf merged commit 3f4aac1 into PSPDFKit-labs:master Apr 10, 2024
17 checks passed
@bszaf
Copy link
Contributor

bszaf commented Apr 10, 2024

Thank you @bradhanks and @wkirschbaum!

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