aboutsummaryrefslogtreecommitdiff
path: root/internal/db/errors/issue.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-16 01:22:27 +0800
committerᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-03-16 01:22:27 +0800
commit9e9ca66467116e9079a2639c00e9e623aca23015 (patch)
treedacdef5392608ff7107e4dd498959d4899e13e54 /internal/db/errors/issue.go
parent82ff0c5852f29daa5f95d965fd50665581e7ea3c (diff)
refactor: unify error handling in routing layer
Diffstat (limited to 'internal/db/errors/issue.go')
-rw-r--r--internal/db/errors/issue.go15
1 files changed, 0 insertions, 15 deletions
diff --git a/internal/db/errors/issue.go b/internal/db/errors/issue.go
index 903cc977..4ea898fb 100644
--- a/internal/db/errors/issue.go
+++ b/internal/db/errors/issue.go
@@ -6,21 +6,6 @@ package errors
import "fmt"
-type IssueNotExist struct {
- ID int64
- RepoID int64
- Index int64
-}
-
-func IsIssueNotExist(err error) bool {
- _, ok := err.(IssueNotExist)
- return ok
-}
-
-func (err IssueNotExist) Error() string {
- return fmt.Sprintf("issue does not exist [id: %d, repo_id: %d, index: %d]", err.ID, err.RepoID, err.Index)
-}
-
type InvalidIssueReference struct {
Ref string
}