Commit bc51bc096dfbf6fb610519b2406deb9f42a4f857

Thomas de Grivel 2021-11-21T12:20:52

fix new repo

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 936bd2b..306405e 100644
--- a/lib/kmxgit_web/controllers/repository_controller.ex
+++ b/lib/kmxgit_web/controllers/repository_controller.ex
@@ -68,7 +68,7 @@ defmodule KmxgitWeb.RepositoryController do
   defp create_repo(conn, owner, params) do
     case Repo.transaction(fn ->
           case RepositoryManager.create_repository(owner, params) do
-            {:ok, repo} -> {:ok, repo}
+            {:ok, repo} -> repo
             {:error, changeset} -> Repo.rollback changeset
           end
         end) do