mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
Fixed issues from go vet (#605)
* CloudFlare provider is missing quotes on a JSON struct tag. * ACME package has a unnecessary JSON struct tag. * Route53 provider has an unreachable return.
This commit is contained in:
committed by
Tom Limoncelli
parent
825ba2d081
commit
6e8d5b59ab
@ -54,8 +54,8 @@ func (c *certManager) createAccount(email string) (*Account, error) {
|
||||
|
||||
type Account struct {
|
||||
Email string `json:"email"`
|
||||
key *ecdsa.PrivateKey `json:"-"`
|
||||
Registration *registration.Resource `json:"registration"`
|
||||
key *ecdsa.PrivateKey
|
||||
}
|
||||
|
||||
func (a *Account) GetEmail() string {
|
||||
|
@ -58,7 +58,7 @@ func init() {
|
||||
// CloudflareApi is the handle for API calls.
|
||||
type CloudflareApi struct {
|
||||
ApiKey string `json:"apikey"`
|
||||
ApiToken string `json:apitoken`
|
||||
ApiToken string `json:"apitoken"`
|
||||
ApiUser string `json:"apiuser"`
|
||||
AccountID string `json:"accountid"`
|
||||
AccountName string `json:"accountname"`
|
||||
|
@ -106,7 +106,6 @@ func withRetry(f func() error) {
|
||||
return
|
||||
}
|
||||
}
|
||||
return
|
||||
}
|
||||
|
||||
func (r *route53Provider) getZones() error {
|
||||
|
Reference in New Issue
Block a user