mirror of https://github.com/go-gitea/gitea.git
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