diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-16 01:22:27 +0800 |
---|---|---|
committer | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-03-16 01:22:27 +0800 |
commit | 9e9ca66467116e9079a2639c00e9e623aca23015 (patch) | |
tree | dacdef5392608ff7107e4dd498959d4899e13e54 /internal/db/errors/issue.go | |
parent | 82ff0c5852f29daa5f95d965fd50665581e7ea3c (diff) |
refactor: unify error handling in routing layer
Diffstat (limited to 'internal/db/errors/issue.go')
-rw-r--r-- | internal/db/errors/issue.go | 15 |
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 } |