Fix warning

This commit is contained in:
Chris McCord 2022-02-01 09:33:04 -05:00
parent d9b63adb85
commit 0b6774e5b1

View file

@ -38,6 +38,8 @@ defmodule LiveBeatsWeb.Nav do
|> push_event("pong", %{})}
end
defp handle_event(_, _, socket), do: {:cont, socket}
defp rate_limited_ping_broadcast(socket, %Accounts.User{} = user, rtt) when is_integer(rtt) do
now = System.system_time(:millisecond)
last_ping_at = socket.assigns[:last_ping_at]
@ -52,8 +54,6 @@ defmodule LiveBeatsWeb.Nav do
defp rate_limited_ping_broadcast(socket, _user, _rtt), do: socket
defp handle_event(_, _, socket), do: {:cont, socket}
defp current_user_profile_username(socket) do
if user = socket.assigns.current_user do
user.username