PSPDFKit-labs / bypass

Bypass provides a quick way to create a custom plug that can be put in place instead of an actual HTTP server to return prebaked responses to client requests.
https://hex.pm/packages/bypass
MIT License
964 stars 111 forks source link

Warning on Elixir 1.16 #142

Closed thbar closed 5 months ago

thbar commented 6 months ago
    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)
wkirschbaum commented 6 months ago

This should be fixed by: https://github.com/PSPDFKit-labs/bypass/pull/139 and the commit in the comments.

bszaf commented 5 months ago

Resolved via #139

thbar commented 5 months ago

Thank you!!!