Skip to content

Commit d4f15a8

Browse files
committed
fix credo
1 parent b904ff2 commit d4f15a8

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

services/app/apps/codebattle/lib/codebattle_web/live/admin/season_edit_view.ex

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,8 @@ defmodule CodebattleWeb.Live.Admin.Season.EditView do
1818

1919
@impl true
2020
def handle_event("update", %{"season" => season_params}, socket) do
21-
IO.puts("=== UPDATE EVENT RECEIVED ===")
22-
IO.inspect(season_params, label: "Params")
23-
2421
case Season.update(socket.assigns.season, season_params) do
2522
{:ok, season} ->
26-
IO.puts("=== UPDATE SUCCESSFUL ===")
2723
changeset = Season.changeset(season)
2824

2925
{:noreply,
@@ -32,8 +28,6 @@ defmodule CodebattleWeb.Live.Admin.Season.EditView do
3228
|> put_flash(:info, "Season updated successfully")}
3329

3430
{:error, changeset} ->
35-
IO.puts("=== UPDATE FAILED ===")
36-
IO.inspect(changeset.errors, label: "Errors")
3731
{:noreply, assign(socket, changeset: changeset)}
3832
end
3933
end
@@ -43,9 +37,6 @@ defmodule CodebattleWeb.Live.Admin.Season.EditView do
4337
end
4438

4539
def handle_event(event, params, socket) do
46-
IO.puts("=== UNKNOWN EVENT RECEIVED ===")
47-
IO.inspect(event, label: "Event name")
48-
IO.inspect(params, label: "Params")
4940
{:noreply, socket}
5041
end
5142

0 commit comments

Comments
 (0)