From f7d55b9c4462e3ba2968a76b9005a32a34c61613 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Sun, 26 Jun 2022 20:51:04 +0400 Subject: [PATCH] In dwelling_captcha.go. Renamed ExpireDate() to ExpiryDate(). In NewDwellingCaptcha() argument expiration changed to expiry. --- internal/captcha/dwelling_captcha.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/captcha/dwelling_captcha.go b/internal/captcha/dwelling_captcha.go index 1984507..2ef24cc 100644 --- a/internal/captcha/dwelling_captcha.go +++ b/internal/captcha/dwelling_captcha.go @@ -18,11 +18,11 @@ type DwellingCaptcha struct { Captcha } -func NewDwellingCaptcha(expiration time.Duration) *DwellingCaptcha { +func NewDwellingCaptcha(expiry time.Duration) *DwellingCaptcha { return &DwellingCaptcha{ Captcha: Captcha{ Answer: GenerateAnswer(), - ExpireIn: ExpireDate(expiration)}} + ExpireIn: ExpiryDate(expiry)}} } func (c *DwellingCaptcha) GenerateImage() *image.Image {