summaryrefslogtreecommitdiffstats
path: root/routers/api/v1/repo.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/api/v1/repo.go')
-rw-r--r--routers/api/v1/repo.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/routers/api/v1/repo.go b/routers/api/v1/repo.go
index 234673a996..62eb965d85 100644
--- a/routers/api/v1/repo.go
+++ b/routers/api/v1/repo.go
@@ -20,10 +20,7 @@ import (
// ToApiRepository converts repository to API format.
func ToApiRepository(owner *models.User, repo *models.Repository, permission api.Permission) *api.Repository {
- cl, err := repo.CloneLink()
- if err != nil {
- log.Error(4, "CloneLink: %v", err)
- }
+ cl := repo.CloneLink()
return &api.Repository{
Id: repo.ID,
Owner: *ToApiUser(owner),