Skip to content

internal/database: Remove redundant db call in RepoStore.GetByName

Warren Gifford requested to merge ig/getbyname-redundant-db-call into main

Created by: indradhanush

The RepoStore.listRepos call is identical to the one already being made earlier in the RepoStore.GetByName function. Additionally, we do not need to check for len(repos) == 1 since we use Limit: 1 in the query.

Co-Authored-By: ᴜɴᴋɴᴡᴏɴ [email protected]

Merge request reports

Loading