Skip to content

Commit

Permalink
fix: run everything on pre-commit and remove debug IO.inspect
Browse files Browse the repository at this point in the history
  • Loading branch information
kainlite committed Mar 15, 2024
1 parent b15e80b commit ac323eb
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 5 additions & 3 deletions config/dev.exs
Original file line number Diff line number Diff line change
Expand Up @@ -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!'"}
]
]
Expand Down
2 changes: 0 additions & 2 deletions lib/tr_web/live/post_live.ex
Original file line number Diff line number Diff line change
Expand Up @@ -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} ->

Check warning on line 236 in lib/tr_web/live/post_live.ex

View workflow job for this annotation

GitHub Actions / Build and test

variable "comment" is unused (if the variable is not meant to be used, prefix it with an underscore)
IO.inspect(comment)

{:noreply,
socket
|> assign(trigger_submit: true)
Expand Down

0 comments on commit ac323eb

Please sign in to comment.