aboutsummaryrefslogtreecommitdiff
path: root/models/error.go
diff options
context:
space:
mode:
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)
-}
-
// .___
// | | ______ ________ __ ____
// | |/ ___// ___/ | \_/ __ \