mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-07 09:57:07 +02:00
refactor: remove redundant err declarations (#32381)
This commit is contained in:
1 parent
dd1f67491f
commit
f4d3aaeeb9
11 files changed
+3
-20
No files matched your search
@@ -202,7 +202,6 @@ func Search(ctx *context.APIContext) {
|
||||
}
|
||||
}
|
||||
|
||||
var err error
|
||||
repos, count, err := repo_model.SearchRepository(ctx, opts)
|
||||
if err != nil {
|
||||
ctx.JSON(http.StatusInternalServerError, api.SearchError{
|
||||
|
||||
@@ -111,7 +111,6 @@ func ListMyRepos(ctx *context.APIContext) {
|
||||
IncludeDescription: true,
|
||||
}
|
||||
|
||||
var err error
|
||||
repos, count, err := repo_model.SearchRepository(ctx, opts)
|
||||
if err != nil {
|
||||
ctx.Error(http.StatusInternalServerError, "SearchRepository", err)
|
||||
|
||||
Reference in new issue
Block a user