Return of errors was removed for methods of CaptchaDB interface.
This commit is contained in:
parent
cebf4b572f
commit
c0d776fa40
@ -38,8 +38,8 @@ type CaptchaDB interface {
|
|||||||
New(data string, captcha Captcha) (Captcha, ID)
|
New(data string, captcha Captcha) (Captcha, ID)
|
||||||
GetExpiry() time.Duration
|
GetExpiry() time.Duration
|
||||||
SetExpiry(expiry time.Duration)
|
SetExpiry(expiry time.Duration)
|
||||||
Image(id ID, style string) (*image.Image, error)
|
Image(id ID, style string) *image.Image
|
||||||
Solve(id ID, answer Answer) (bool, error)
|
Solve(id ID, answer Answer) bool
|
||||||
IsSolved(id ID) (bool, error)
|
IsSolved(id ID) bool
|
||||||
Remove(id ID) error
|
Remove(id ID)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user