Browse Source

chore: hide unused vars

master
Inhji Y. 10 months ago
parent
commit
7084324d81
  1. 4
      apps/tomie_web/lib/tomie_web/controllers/blog_controller.ex

4
apps/tomie_web/lib/tomie_web/controllers/blog_controller.ex

@ -18,7 +18,7 @@ defmodule TomieWeb.BlogController do
post = Blog.get_post!(id)
case Blog.update_post(post, post_params) do
{:ok, post} ->
{:ok, _post} ->
conn
|> redirect(to: Routes.blog_path(conn, :index))
@ -35,7 +35,7 @@ defmodule TomieWeb.BlogController do
def create(conn, %{"post" => post_params}) do
case Blog.create_post(post_params) do
{:ok, post} ->
{:ok, _post} ->
conn
|> redirect(to: Routes.blog_path(conn, :index))

Loading…
Cancel
Save