mirror of
https://github.com/go-gitea/gitea
synced 2024-09-12 09:26:56 +02:00
Revert unnecessary change
This commit is contained in:
parent
eadf3bbccd
commit
da28c1c3a4
@ -724,7 +724,7 @@ func (err ErrRepoNotExist) Unwrap() error {
|
||||
}
|
||||
|
||||
// GetRepositoryByOwnerAndName returns the repository by given owner name and repo name
|
||||
func GetRepositoryByOwnerAndName(ctx context.Context, ownerName, repoName string) (*Repository, error) {
|
||||
func GetRepositoryByOwnerAndName(ctx context.Context, ownerName, repoName string) (*Repository, error) {
|
||||
var repo Repository
|
||||
has, err := db.GetEngine(ctx).Table("repository").Select("repository.*").
|
||||
Join("INNER", "`user`", "`user`.id = repository.owner_id").
|
||||
|
Loading…
Reference in New Issue
Block a user