Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 12, 13:15 UTC
run `golangci-lint run --fix --fast` (#6270)
Mohammed Al Sahaf committed
Apr 25, 2024 at 00:17 UTC
c6eb186064091c79f46d03fd0fc5c233c686566f
2 files changed
+1
-2
caddyconfig/caddyfile/parse.go
-1
@@ -395,7 +395,6 @@ func (p *parser) doImport(nesting int) error {
395
return p.Errf("Glob pattern may only contain one wildcard (*), but has others: %s", globPattern)
396
}
397
matches, err = filepath.Glob(globPattern)
398
-
398
if err != nil {
399
return p.Errf("Failed to use import pattern %s: %v", importPattern, err)
400
}
modules/caddytls/acmeissuer.go
+1
-1
@@ -372,7 +372,7 @@ func (iss *ACMEIssuer) UnmarshalCaddyfile(d *caddyfile.Dispenser) error {
372
return d.Errf("lifetime must be >= 0: %s", lifetime)
373
}
374
iss.CertificateLifetime = caddy.Duration(lifetime)
375
-
375
+
376
case "dir":
377
if iss.CA != "" {
378
return d.Errf("directory is already specified: %s", iss.CA)