internal/database: Remove redundant db call in RepoStore.GetByName
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]