diff --git a/config/dev.exs b/config/dev.exs index 7311b0f..8c8f625 100644 --- a/config/dev.exs +++ b/config/dev.exs @@ -102,14 +102,16 @@ config :git_hooks, hooks: [ pre_commit: [ tasks: [ + {:cmd, "mix format"}, {:cmd, "mix format --check-formatted"}, - {:cmd, "mix format"} + {:cmd, "mix credo"}, + {:cmd, "mix dialyzer"}, + {:cmd, "mix test --color"}, +{:cmd, "echo 'success!'"} ] ], pre_push: [ tasks: [ - {:cmd, "mix dialyzer"}, - {:cmd, "mix test --color"}, {:cmd, "echo 'success!'"} ] ] diff --git a/lib/tr_web/live/post_live.ex b/lib/tr_web/live/post_live.ex index fe245d5..b976b17 100644 --- a/lib/tr_web/live/post_live.ex +++ b/lib/tr_web/live/post_live.ex @@ -234,8 +234,6 @@ defmodule TrWeb.PostLive do if current_user && !is_nil(current_user.confirmed_at) do case Tr.Post.create_comment(params) do {:ok, comment} -> - IO.inspect(comment) - {:noreply, socket |> assign(trigger_submit: true)