Skip to content

Commit 1d1d88d

Browse files
committed
🍱 fix lint
1 parent f886720 commit 1d1d88d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

pkg/captcha/captcha.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,19 @@ type InfoProvider struct {
3838

3939
//nolint:gochecknoglobals
4040
var infoProviders = map[string]*InfoProvider{
41-
configuration.HcaptchaProvider: &InfoProvider{
41+
configuration.HcaptchaProvider: {
4242
js: "https://hcaptcha.com/1/api.js",
4343
key: "h-captcha",
4444
response: "h-captcha-response",
4545
validate: "https://api.hcaptcha.com/siteverify",
4646
},
47-
configuration.RecaptchaProvider: &InfoProvider{
47+
configuration.RecaptchaProvider: {
4848
js: "https://www.google.com/recaptcha/api.js",
4949
key: "g-recaptcha",
5050
response: "g-recaptcha-response",
5151
validate: "https://www.google.com/recaptcha/api/siteverify",
5252
},
53-
configuration.TurnstileProvider: &InfoProvider{
53+
configuration.TurnstileProvider: {
5454
js: "https://challenges.cloudflare.com/turnstile/v0/api.js",
5555
key: "cf-turnstile",
5656
response: "cf-turnstile-response",

pkg/configuration/configuration.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ type Config struct {
8686
CaptchaHTMLFilePath string `json:"captchaHtmlFilePath,omitempty"`
8787
CaptchaProvider string `json:"captchaProvider,omitempty"`
8888
CaptchaCustomJsURL string `json:"captchaCustomJsUrl,omitempty"`
89-
CaptchaCustomValidateURL string `json:"captchaCustomValidateURL,omitempty"`
89+
CaptchaCustomValidateURL string `json:"captchaCustomValidateUrl,omitempty"`
9090
CaptchaCustomKey string `json:"captchaCustomKey,omitempty"`
9191
CaptchaCustomResponse string `json:"captchaCustomResponse,omitempty"`
9292
CaptchaSiteKey string `json:"captchaSiteKey,omitempty"`

0 commit comments

Comments
 (0)