From 1207bda94b8de9f0cc618c4ccce235d809a5559e Mon Sep 17 00:00:00 2001 From: Ethan Koenig Date: Wed, 4 Jan 2017 19:50:34 -0500 Subject: Fix typos in models/ (#576) --- models/error.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/error.go') diff --git a/models/error.go b/models/error.go index f0f3bd1f76..edbb6003e9 100644 --- a/models/error.go +++ b/models/error.go @@ -583,7 +583,7 @@ type ErrPullRequestNotExist struct { IssueID int64 HeadRepoID int64 BaseRepoID int64 - HeadBarcnh string + HeadBranch string BaseBranch string } @@ -595,7 +595,7 @@ func IsErrPullRequestNotExist(err error) bool { func (err ErrPullRequestNotExist) Error() string { return fmt.Sprintf("pull request does not exist [id: %d, issue_id: %d, head_repo_id: %d, base_repo_id: %d, head_branch: %s, base_branch: %s]", - err.ID, err.IssueID, err.HeadRepoID, err.BaseRepoID, err.HeadBarcnh, err.BaseBranch) + err.ID, err.IssueID, err.HeadRepoID, err.BaseRepoID, err.HeadBranch, err.BaseBranch) } // ErrPullRequestAlreadyExists represents a "PullRequestAlreadyExists"-error -- cgit v1.2.3