Skip to content

Commit 79e7f1d

Browse files
committed
Mix format
1 parent ea430c1 commit 79e7f1d

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

services/app/apps/codebattle/lib/codebattle_web/controllers/ext_api/user_controller.ex

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,11 @@ defmodule CodebattleWeb.ExtApi.UserController do
154154
end
155155

156156
defp cast_clan(attrs, %{"clan" => clan}) do
157-
try do
158-
cast_attribute(attrs, :clan, Base.decode64!(clan))
159-
rescue
160-
_ -> cast_attribute(attrs, :clan, clan)
161-
end
157+
cast_attribute(attrs, :clan, Base.decode64!(clan))
158+
rescue
159+
_ -> cast_attribute(attrs, :clan, clan)
162160
end
161+
163162
defp cast_clan(attrs, _params), do: attrs
164163

165164
defp build_random_name do

0 commit comments

Comments
 (0)