aboutsummaryrefslogtreecommitdiff
path: root/models/error.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2017-03-19 17:44:46 -0400
committerUnknwon <u@gogs.io>2017-03-19 17:44:46 -0400
commit2807274e2dca1780443bcbbab946b1551c4c88f5 (patch)
tree30c58a2e76e6e1338e8fd8e615d08bcd5b22d5bf /models/error.go
parent55a5ad5cdcbe6906f863d0b7f27d1ee500720416 (diff)
repo/webhook: able to retrigger delivery history (#2187)
Diffstat (limited to 'models/error.go')
-rw-r--r--models/error.go20
1 files changed, 0 insertions, 20 deletions
diff --git a/models/error.go b/models/error.go
index 18df15ce..0e327d15 100644
--- a/models/error.go
+++ b/models/error.go
@@ -436,26 +436,6 @@ func (err ErrBranchNotExist) Error() string {
return fmt.Sprintf("branch does not exist [name: %s]", err.Name)
}
-// __ __ ___. .__ __
-// / \ / \ ____\_ |__ | |__ ____ ____ | | __
-// \ \/\/ // __ \| __ \| | \ / _ \ / _ \| |/ /
-// \ /\ ___/| \_\ \ Y ( <_> | <_> ) <
-// \__/\ / \___ >___ /___| /\____/ \____/|__|_ \
-// \/ \/ \/ \/ \/
-
-type ErrWebhookNotExist struct {
- ID int64
-}
-
-func IsErrWebhookNotExist(err error) bool {
- _, ok := err.(ErrWebhookNotExist)
- return ok
-}
-
-func (err ErrWebhookNotExist) Error() string {
- return fmt.Sprintf("webhook does not exist [id: %d]", err.ID)
-}
-
// .___
// | | ______ ________ __ ____
// | |/ ___// ___/ | \_/ __ \