From 2807274e2dca1780443bcbbab946b1551c4c88f5 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Sun, 19 Mar 2017 17:44:46 -0400 Subject: repo/webhook: able to retrigger delivery history (#2187) --- models/error.go | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'models/error.go') 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) -} - // .___ // | | ______ ________ __ ____ // | |/ ___// ___/ | \_/ __ \ -- cgit v1.2.3