diff options
author | ᴜɴᴋɴᴡᴏɴ <u@gogs.io> | 2020-09-26 16:23:05 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-26 16:23:05 +0800 |
commit | 83a89127fdad6f551551b741c1a6967f13a02e8a (patch) | |
tree | a89002d7f4af250f3d8e517b74c7eaf478f27633 /internal/db/errors/issue.go | |
parent | 6ed98ca8f674d0e40d0c356df9a26fb3e2ff2cec (diff) |
action: fix issue reference regexp and error handling (#6352)
Diffstat (limited to 'internal/db/errors/issue.go')
-rw-r--r-- | internal/db/errors/issue.go | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/internal/db/errors/issue.go b/internal/db/errors/issue.go deleted file mode 100644 index 4ea898fb..00000000 --- a/internal/db/errors/issue.go +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright 2017 The Gogs Authors. All rights reserved. -// Use of this source code is governed by a MIT-style -// license that can be found in the LICENSE file. - -package errors - -import "fmt" - -type InvalidIssueReference struct { - Ref string -} - -func IsInvalidIssueReference(err error) bool { - _, ok := err.(InvalidIssueReference) - return ok -} - -func (err InvalidIssueReference) Error() string { - return fmt.Sprintf("invalid issue reference [ref: %s]", err.Ref) -} |