refactor: remove redundant err declarations (#32381)

This commit is contained in:
Oleksandr Redko
2024-10-30 21:36:24 +02:00
committed by GitHub
parent dd1f67491f
commit f4d3aaeeb9
11 changed files with 3 additions and 20 deletions

View File

@ -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{