style: fix linting errors
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon 2025-09-29 16:41:46 +02:00
parent d40bc0bb82
commit d10fcc3da1
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
7 changed files with 68 additions and 46 deletions

View file

@ -34,8 +34,10 @@ defmodule MvWeb.LiveUserAuth do
case socket.assigns do
%{current_user: %{} = user} ->
{:cont, assign(socket, :current_user, user)}
_ ->
{:halt, Phoenix.LiveView.redirect(socket, to: ~p"/sign-in")}
socket = Phoenix.LiveView.redirect(socket, to: ~p"/sign-in")
{:halt, socket}
end
end