From 2159d57653f931af0cee6dc0602db04120833eb9 Mon Sep 17 00:00:00 2001 From: Dinos Kousidis Date: Tue, 22 Sep 2020 13:37:46 +0200 Subject: [PATCH] Return ErrNotFound if team is not in project --- gitlab/client_repository_teamaccess.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gitlab/client_repository_teamaccess.go b/gitlab/client_repository_teamaccess.go index a6e625fb..a27e234a 100644 --- a/gitlab/client_repository_teamaccess.go +++ b/gitlab/client_repository_teamaccess.go @@ -61,7 +61,7 @@ func (c *TeamAccessClient) Get(ctx context.Context, teamName string) (gitprovide if err != nil { return nil, err } - return nil, nil + return nil, gitprovider.ErrNotFound } // List lists the team access control list for this repository.