From c0d776fa40eb0255f92de05c57fbe2b0aadbd683 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Thu, 20 Oct 2022 23:50:42 +0400 Subject: [PATCH] Return of errors was removed for methods of CaptchaDB interface. --- pkg/captcha/db.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/captcha/db.go b/pkg/captcha/db.go index cab8d6d..1fc1f7e 100644 --- a/pkg/captcha/db.go +++ b/pkg/captcha/db.go @@ -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) }