Skip to content

Commit

Permalink
fix: Use Application.compile_env instead of Application.get_env
Browse files Browse the repository at this point in the history
Fixes a compiler warning.
  • Loading branch information
arkadyan committed Jul 24, 2024
1 parent 97a2896 commit 6a4da1c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/document_viewer_web/router.ex
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
defmodule DocumentViewerWeb.Router do
use DocumentViewerWeb, :router

@redirect_http? Application.compile_env(:document_viewer, :redirect_http?)
pipeline :redirect_prod_http do
if Application.get_env(:document_viewer, :redirect_http?) do
if @redirect_http? do
plug(Plug.SSL, rewrite_on: [:x_forwarded_proto])
end
end
Expand Down

0 comments on commit 6a4da1c

Please sign in to comment.