Return of errors was removed for methods of CaptchaDB interface.

This commit is contained in:
Alexander Andreev 2022-10-20 23:50:42 +04:00
parent cebf4b572f
commit c0d776fa40
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F

View File

@ -38,8 +38,8 @@ type CaptchaDB interface {
New(data string, captcha Captcha) (Captcha, ID)
GetExpiry() time.Duration
SetExpiry(expiry time.Duration)
Image(id ID, style string) (*image.Image, error)
Solve(id ID, answer Answer) (bool, error)
IsSolved(id ID) (bool, error)
Remove(id ID) error
Image(id ID, style string) *image.Image
Solve(id ID, answer Answer) bool
IsSolved(id ID) bool
Remove(id ID)
}