Skip to content

Commit

Permalink
Remove unnecessary code
Browse files Browse the repository at this point in the history
  • Loading branch information
lunny committed May 10, 2022
1 parent 10705d6 commit a86e9f1
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions routers/web/repo/repo.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,13 +599,6 @@ func SearchRepo(ctx *context.Context) {

results := make([]*api.Repository, len(repos))
for i, repo := range repos {
if err = repo.GetOwner(ctx); err != nil {
ctx.JSON(http.StatusInternalServerError, api.SearchError{
OK: false,
Error: err.Error(),
})
return
}
results[i] = &api.Repository{
ID: repo.ID,
FullName: repo.FullName(),
Expand Down

0 comments on commit a86e9f1

Please sign in to comment.