From beee6e03b15e594f396fb2fb769b58e543ef1794 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 23 Mar 2017 14:27:34 -0400 Subject: error: move ErrRepoNotExist -> errors.RepoNotExist --- modules/context/repo.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/context/repo.go') diff --git a/modules/context/repo.go b/modules/context/repo.go index 4a3ccf97..d3475e43 100644 --- a/modules/context/repo.go +++ b/modules/context/repo.go @@ -111,7 +111,7 @@ func (r *Repository) PullRequestURL(baseBranch, headBranch string) string { func RetrieveBaseRepo(ctx *Context, repo *models.Repository) { // Non-fork repository will not return error in this method. if err := repo.GetBaseRepo(); err != nil { - if models.IsErrRepoNotExist(err) { + if errors.IsRepoNotExist(err) { repo.IsFork = false repo.ForkID = 0 return @@ -180,7 +180,7 @@ func RepoAssignment() macaron.Handler { // Get repository. repo, err := models.GetRepositoryByName(owner.ID, repoName) if err != nil { - if models.IsErrRepoNotExist(err) { + if errors.IsRepoNotExist(err) { if ctx.Query("go-get") == "1" { earlyResponseForGoGetMeta(ctx) return -- cgit v1.2.3