We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea430c1 commit 79e7f1dCopy full SHA for 79e7f1d
services/app/apps/codebattle/lib/codebattle_web/controllers/ext_api/user_controller.ex
@@ -154,12 +154,11 @@ defmodule CodebattleWeb.ExtApi.UserController do
154
end
155
156
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
+ cast_attribute(attrs, :clan, Base.decode64!(clan))
+ rescue
+ _ -> cast_attribute(attrs, :clan, clan)
162
+
163
defp cast_clan(attrs, _params), do: attrs
164
165
defp build_random_name do
0 commit comments