Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Feb 9, 2021. It is now read-only.

Commit 6575c80

Browse files
committed
Run mix format across all files
1 parent d95f86a commit 6575c80

File tree

2 files changed

+16
-15
lines changed

2 files changed

+16
-15
lines changed

‎lib/platform_web/channels/user_socket.ex‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,11 @@ defmodule PlatformWeb.UserSocket do
1616
# See `Phoenix.Token` documentation for examples in
1717
# performing token verification on connect.
1818
def connect(%{"token" => token}, socket) do
19-
case Phoenix.Token.verify(socket, "user salt", token, max_age: 1209600) do
19+
case Phoenix.Token.verify(socket, "user salt", token, max_age: 1_209_600) do
2020
{:ok, current_user_id} ->
2121
socket = assign(socket, :player_id, current_user_id)
2222
{:ok, socket}
23+
2324
{:error, _} ->
2425
:error
2526
end

‎test/platform_web/controllers/game_controller_test.exs‎

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,13 @@ defmodule PlatformWeb.GameControllerTest do
5050
conn = get(conn, Routes.game_path(conn, :show, id))
5151

5252
assert %{
53-
"id" => id,
54-
"description" => "some description",
55-
"featured" => true,
56-
"slug" => "some slug",
57-
"thumbnail" => "some thumbnail",
58-
"title" => "some title"
59-
} = json_response(conn, 200)["data"]
53+
"id" => id,
54+
"description" => "some description",
55+
"featured" => true,
56+
"slug" => "some slug",
57+
"thumbnail" => "some thumbnail",
58+
"title" => "some title"
59+
} = json_response(conn, 200)["data"]
6060
end
6161

6262
test "renders errors when data is invalid", %{conn: conn} do
@@ -75,13 +75,13 @@ defmodule PlatformWeb.GameControllerTest do
7575
conn = get(conn, Routes.game_path(conn, :show, id))
7676

7777
assert %{
78-
"id" => id,
79-
"description" => "some updated description",
80-
"featured" => false,
81-
"slug" => "some updated slug",
82-
"thumbnail" => "some updated thumbnail",
83-
"title" => "some updated title"
84-
} = json_response(conn, 200)["data"]
78+
"id" => id,
79+
"description" => "some updated description",
80+
"featured" => false,
81+
"slug" => "some updated slug",
82+
"thumbnail" => "some updated thumbnail",
83+
"title" => "some updated title"
84+
} = json_response(conn, 200)["data"]
8585
end
8686

8787
test "renders errors when data is invalid", %{conn: conn, game: game} do

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /