Commit c8584feb388f73bc5c5c368d253d4264925d8994

Thomas de Grivel 2023-11-09T13:12:35

debug even more

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/lib/kmxgit_web/controllers/repository_controller.ex b/lib/kmxgit_web/controllers/repository_controller.ex
index f06c04d..6b5e1dc 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -565,7 +565,7 @@ defmodule KmxgitWeb.RepositoryController do
   end
 
   defp git_add_user_email(git, email) do
-    if Enum.find(git.users_email, email) do
+    if Enum.find(git.users_email, & &1 == email) do
       git
     else
       %{git | users_email: [email | git.users_email]}