Skip to content

Commit a86e9f1

Browse files
committed
Remove unnecessary code
1 parent 10705d6 commit a86e9f1

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

routers/web/repo/repo.go

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -599,13 +599,6 @@ func SearchRepo(ctx *context.Context) {
599599

600600
results := make([]*api.Repository, len(repos))
601601
for i, repo := range repos {
602-
if err = repo.GetOwner(ctx); err != nil {
603-
ctx.JSON(http.StatusInternalServerError, api.SearchError{
604-
OK: false,
605-
Error: err.Error(),
606-
})
607-
return
608-
}
609602
results[i] = &api.Repository{
610603
ID: repo.ID,
611604
FullName: repo.FullName(),

0 commit comments

Comments
 (0)