Skip to content

Commit c4da67c

Browse files
committed
Fix format
1 parent 85a72b4 commit c4da67c

File tree

4 files changed

+11
-4
lines changed

4 files changed

+11
-4
lines changed

services/app/apps/codebattle/lib/codebattle/tournament/strategy/team.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ defmodule Codebattle.Tournament.Team do
8181
|> Map.values()
8282
|> shift_pairs(tournament.current_round)
8383
|> Enum.zip()
84-
|> Enum.map(fn {p1, p2} -> [p1,p2] end)
84+
|> Enum.map(fn {p1, p2} -> [p1, p2] end)
8585

8686
{tournament, player_pairs}
8787
end

services/app/apps/codebattle/lib/codebattle_web/live/components/tournament/create_form.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,10 @@ defmodule CodebattleWeb.Live.Tournament.CreateFormComponent do
188188
<div class="d-flex flex-column flex-md-row flex-lg-row flex-xl-row">
189189
<div class="d-flex flex-column justify-content-between w-auto">
190190
<%= label(f, :players_limit) %>
191-
<%= select(f, :players_limit, [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384],
191+
<%= select(
192+
f,
193+
:players_limit,
194+
[2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384],
192195
value: f.params["players_limit"] || 64,
193196
class: "custom-select"
194197
) %>

services/app/apps/codebattle/lib/codebattle_web/live/components/tournament/edit_form.ex

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,10 @@ defmodule CodebattleWeb.Live.Tournament.EditFormComponent do
125125
<div class="d-flex flex-column flex-md-row flex-lg-row flex-xl-row">
126126
<div class="d-flex flex-column justify-content-between w-auto">
127127
<%= label(f, :players_limit) %>
128-
<%= select(f, :players_limit, [2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384],
128+
<%= select(
129+
f,
130+
:players_limit,
131+
[2, 4, 8, 16, 32, 64, 128, 256, 512, 1024, 2048, 4096, 8192, 16384],
129132
class: "custom-select"
130133
) %>
131134
<%= error_tag(f, :players_limit) %>

services/app/apps/codebattle/test/codebattle_web/channels/game_channel_test.exs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ defmodule CodebattleWeb.GameChannelTest do
2525
{:ok, game} =
2626
Game.Context.create_game(%{state: "waiting_opponent", players: [user1], level: "easy"})
2727

28-
{:ok, %{game: created}, _socket1} = subscribe_and_join(socket1, GameChannel, game_topic(game))
28+
{:ok, %{game: created}, _socket1} =
29+
subscribe_and_join(socket1, GameChannel, game_topic(game))
2930

3031
assert created.task.level == "easy"
3132
assert created.mode == "standard"

0 commit comments

Comments
 (0)