Skip to content

Commit

Permalink
chore: update linter
Browse files Browse the repository at this point in the history
  • Loading branch information
ldez committed Aug 15, 2024
1 parent 5ab212c commit 501aded
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
env:
GO_VERSION: stable
GOLANGCI_LINT_VERSION: v1.59.1
GOLANGCI_LINT_VERSION: v1.60.1
HUGO_VERSION: 0.131.0
CGO_ENABLED: 0
LEGO_E2E_TESTS: CI
Expand Down
4 changes: 2 additions & 2 deletions providers/dns/dode/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ func NewClient(token string) *Client {

// UpdateTxtRecord Update the domains TXT record
// To update the TXT record we just need to make one simple get request.
func (c Client) UpdateTxtRecord(ctx context.Context, fqdn, txt string, clear bool) error {
func (c Client) UpdateTxtRecord(ctx context.Context, fqdn, txt string, clearRecord bool) error {
endpoint := c.baseURL.JoinPath("letsencrypt")

query := endpoint.Query()
query.Set("token", c.token)
query.Set("domain", dns01.UnFqdn(fqdn))

// api call differs per set/delete
if clear {
if clearRecord {
query.Set("action", "delete")
} else {
query.Set("value", txt)
Expand Down
4 changes: 2 additions & 2 deletions providers/dns/duckdns/internal/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ func (c Client) RemoveTXTRecord(ctx context.Context, domain string) error {
// UpdateTxtRecord Update the domains TXT record
// To update the TXT record we just need to make one simple get request.
// In DuckDNS you only have one TXT record shared with the domain and all subdomains.
func (c Client) UpdateTxtRecord(ctx context.Context, domain, txt string, clear bool) error {
func (c Client) UpdateTxtRecord(ctx context.Context, domain, txt string, clearRecord bool) error {
endpoint, _ := url.Parse(defaultBaseURL)

mainDomain := getMainDomain(domain)
Expand All @@ -54,7 +54,7 @@ func (c Client) UpdateTxtRecord(ctx context.Context, domain, txt string, clear b
query := endpoint.Query()
query.Set("domains", mainDomain)
query.Set("token", c.token)
query.Set("clear", strconv.FormatBool(clear))
query.Set("clear", strconv.FormatBool(clearRecord))
query.Set("txt", txt)
endpoint.RawQuery = query.Encode()

Expand Down

0 comments on commit 501aded

Please sign in to comment.