Commit eed813118c7509e53166e559fffd565426f3dc67

Thomas de Grivel 2022-02-03T17:35:21

wtf

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/lib/kmxgit/repository_manager/repository.ex b/lib/kmxgit/repository_manager/repository.ex
index 526b6cb..c80475e 100644
--- a/lib/kmxgit/repository_manager/repository.ex
+++ b/lib/kmxgit/repository_manager/repository.ex
@@ -133,6 +133,7 @@ defmodule Kmxgit.RepositoryManager.Repository do
     String.split("#{repo.slug}.git", "/") ++ rest
   end
 
+  def owners(nil), do: []
   def owners(repo) do
     if repo.user do
       [repo.user]
@@ -152,6 +153,7 @@ defmodule Kmxgit.RepositoryManager.Repository do
     end
   end
 
+  def members(nil), do: []
   def members(repo) do
     repo
     |> owners()