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:
Mohammed Al Sahaf
2020-04-09 00:31:51 +03:00
committed by GitHub
parent 28fdf64dc5
commit 7dfd69cdc5
19 changed files with 28 additions and 26 deletions
+1 -1
View File
@@ -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 {