Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
iszubok committed Dec 5, 2024
1 parent 10333d7 commit c733a28
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions internal/server/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ type Config struct {
proxyCount int
hcaptchaSiteKey string
hcaptchaSecret string
logoUrl string
backgroundUrl string
logoURL string
backgroundURL string
}

func NewConfig(network, symbol string, httpPort, interval, proxyCount int, payout int64, hcaptchaSiteKey, hcaptchaSecret, logoUrl, backgroundUrl string) *Config {

Check failure on line 16 in internal/server/config.go

View workflow job for this annotation

GitHub Actions / golangci

var-naming: func parameter logoUrl should be logoURL (revive)
Expand All @@ -23,7 +23,7 @@ func NewConfig(network, symbol string, httpPort, interval, proxyCount int, payou
proxyCount: proxyCount,
hcaptchaSiteKey: hcaptchaSiteKey,
hcaptchaSecret: hcaptchaSecret,
logoUrl: logoUrl,
backgroundUrl: backgroundUrl,
logoURL: logoUrl,
backgroundURL: backgroundUrl,
}
}
4 changes: 2 additions & 2 deletions internal/server/dto.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ type infoResponse struct {
Payout string `json:"payout"`
Symbol string `json:"symbol"`
HcaptchaSiteKey string `json:"hcaptcha_sitekey,omitempty"`
LogoUrl string `json:"logo_url"`
BackgroundUrl string `json:"background_url"`
LogoURL string `json:"logo_url"`
BackgroundURL string `json:"background_url"`
}

type malformedRequest struct {
Expand Down
4 changes: 2 additions & 2 deletions internal/server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func (s *Server) handleInfo() http.HandlerFunc {
Symbol: s.cfg.symbol,
Payout: strconv.FormatInt(s.cfg.payout, 10),
HcaptchaSiteKey: s.cfg.hcaptchaSiteKey,
LogoUrl: s.cfg.logoUrl,
BackgroundUrl: s.cfg.backgroundUrl,
LogoURL: s.cfg.logoURL,
BackgroundURL: s.cfg.backgroundURL,
}, http.StatusOK)
}
}

0 comments on commit c733a28

Please sign in to comment.