Skip to content

Commit 501aded

Browse files
committed
chore: update linter
1 parent 5ab212c commit 501aded

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-latest
1414
env:
1515
GO_VERSION: stable
16-
GOLANGCI_LINT_VERSION: v1.59.1
16+
GOLANGCI_LINT_VERSION: v1.60.1
1717
HUGO_VERSION: 0.131.0
1818
CGO_ENABLED: 0
1919
LEGO_E2E_TESTS: CI

providers/dns/dode/internal/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ func NewClient(token string) *Client {
3636

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

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

4646
// api call differs per set/delete
47-
if clear {
47+
if clearRecord {
4848
query.Set("action", "delete")
4949
} else {
5050
query.Set("value", txt)

providers/dns/duckdns/internal/client.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ func (c Client) RemoveTXTRecord(ctx context.Context, domain string) error {
4343
// UpdateTxtRecord Update the domains TXT record
4444
// To update the TXT record we just need to make one simple get request.
4545
// In DuckDNS you only have one TXT record shared with the domain and all subdomains.
46-
func (c Client) UpdateTxtRecord(ctx context.Context, domain, txt string, clear bool) error {
46+
func (c Client) UpdateTxtRecord(ctx context.Context, domain, txt string, clearRecord bool) error {
4747
endpoint, _ := url.Parse(defaultBaseURL)
4848

4949
mainDomain := getMainDomain(domain)
@@ -54,7 +54,7 @@ func (c Client) UpdateTxtRecord(ctx context.Context, domain, txt string, clear b
5454
query := endpoint.Query()
5555
query.Set("domains", mainDomain)
5656
query.Set("token", c.token)
57-
query.Set("clear", strconv.FormatBool(clear))
57+
query.Set("clear", strconv.FormatBool(clearRecord))
5858
query.Set("txt", txt)
5959
endpoint.RawQuery = query.Encode()
6060

0 commit comments

Comments
 (0)