From c6eb186064091c79f46d03fd0fc5c233c686566f Mon Sep 17 00:00:00 2001 From: Mohammed Al Sahaf Date: Thu, 25 Apr 2024 00:17:23 +0300 Subject: [PATCH] run `golangci-lint run --fix --fast` (#6270) --- caddyconfig/caddyfile/parse.go | 1 - modules/caddytls/acmeissuer.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/caddyconfig/caddyfile/parse.go b/caddyconfig/caddyfile/parse.go index cdb9a761..a865b70d 100644 --- a/caddyconfig/caddyfile/parse.go +++ b/caddyconfig/caddyfile/parse.go @@ -395,7 +395,6 @@ func (p *parser) doImport(nesting int) error { return p.Errf("Glob pattern may only contain one wildcard (*), but has others: %s", globPattern) } matches, err = filepath.Glob(globPattern) - if err != nil { return p.Errf("Failed to use import pattern %s: %v", importPattern, err) } diff --git a/modules/caddytls/acmeissuer.go b/modules/caddytls/acmeissuer.go index 1f57c7e3..7eeca3eb 100644 --- a/modules/caddytls/acmeissuer.go +++ b/modules/caddytls/acmeissuer.go @@ -372,7 +372,7 @@ func (iss *ACMEIssuer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error { return d.Errf("lifetime must be >= 0: %s", lifetime) } iss.CertificateLifetime = caddy.Duration(lifetime) - + case "dir": if iss.CA != "" { return d.Errf("directory is already specified: %s", iss.CA)