diff options
author | Unknwon <u@gogs.io> | 2015-11-30 20:45:55 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-11-30 20:45:55 -0500 |
commit | 830d00066785d131413d1de11ce301bf1f0b818a (patch) | |
tree | dd22bc4ecc89692146776d335d08c04722650f3f /routers/api | |
parent | 5d1f5f32d069ee58a9eb89072231d92dc9ec5f74 (diff) | |
download | gitea-830d00066785d131413d1de11ce301bf1f0b818a.tar.gz gitea-830d00066785d131413d1de11ce301bf1f0b818a.zip |
finish wiki
Diffstat (limited to 'routers/api')
-rw-r--r-- | routers/api/v1/repo.go | 5 |
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), |