mirror of
https://github.com/caddyserver/caddy.git
synced 2026-05-23 07:12:30 -04:00
chore: make the linter happier (#3245)
* chore: make the linter happier * chore: remove reference to maligned linter in .golangci.yml
This commit is contained in:
committed by
GitHub
parent
28fdf64dc5
commit
7dfd69cdc5
@@ -57,7 +57,7 @@ type CertKeyFilePair struct {
|
||||
|
||||
// LoadCertificates returns the certificates to be loaded by fl.
|
||||
func (fl FileLoader) LoadCertificates() ([]Certificate, error) {
|
||||
var certs []Certificate
|
||||
certs := make([]Certificate, 0, len(fl))
|
||||
for _, pair := range fl {
|
||||
certData, err := ioutil.ReadFile(pair.Certificate)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user