(fix) address several compiler warnings

pull/1704/head
Gabriel Rodriguez Alsina 6 years ago
parent efb545587a
commit 64c75349d6
  1. 4
      apps/block_scout_web/lib/block_scout_web/controllers/active_pools_controller.ex
  2. 4
      apps/block_scout_web/lib/block_scout_web/controllers/common_components_controller.ex
  3. 4
      apps/block_scout_web/lib/block_scout_web/controllers/inactive_pools_controller.ex
  4. 4
      apps/block_scout_web/lib/block_scout_web/controllers/stakes_controller.ex
  5. 4
      apps/block_scout_web/lib/block_scout_web/controllers/validators_controller.ex

@ -1,14 +1,12 @@
defmodule BlockScoutWeb.ActivePoolsController do
use BlockScoutWeb, :controller
alias BlockScoutWeb.ActivePoolsView
def index(conn, params) do
[]
|> handle_render(conn, params)
end
defp handle_render(full_options, conn, _params) do
defp handle_render(_full_options, conn, _params) do
render(conn, "index.html")
end
end

@ -1,14 +1,12 @@
defmodule BlockScoutWeb.CommonComponentsController do
use BlockScoutWeb, :controller
alias BlockScoutWeb.CommonComponentsView
def index(conn, params) do
[]
|> handle_render(conn, params)
end
defp handle_render(full_options, conn, _params) do
defp handle_render(_full_options, conn, _params) do
render(conn, "index.html")
end
end

@ -1,14 +1,12 @@
defmodule BlockScoutWeb.InactivePoolsController do
use BlockScoutWeb, :controller
alias BlockScoutWeb.InactivePoolsView
def index(conn, params) do
[]
|> handle_render(conn, params)
end
defp handle_render(full_options, conn, _params) do
defp handle_render(_full_options, conn, _params) do
render(conn, "index.html")
end
end

@ -1,14 +1,12 @@
defmodule BlockScoutWeb.StakesController do
use BlockScoutWeb, :controller
alias BlockScoutWeb.StakesView
def index(conn, params) do
[]
|> handle_render(conn, params)
end
defp handle_render(full_options, conn, _params) do
defp handle_render(_full_options, conn, _params) do
render(conn, "index.html")
end
end

@ -1,14 +1,12 @@
defmodule BlockScoutWeb.ValidatorsController do
use BlockScoutWeb, :controller
alias BlockScoutWeb.ValidatorsView
def index(conn, params) do
[]
|> handle_render(conn, params)
end
defp handle_render(full_options, conn, _params) do
defp handle_render(_full_options, conn, _params) do
render(conn, "index.html")
end
end

Loading…
Cancel
Save