multi: update linter, fix new issues

This commit is contained in:
Oliver Gugger
2023-05-12 10:09:56 +02:00
parent e549096b88
commit 56dba2df03
31 changed files with 263 additions and 301 deletions

View File

@ -517,7 +517,7 @@ func (t *TLSManager) loadEphemeralCertificate() ([]byte, error) {
if err != nil {
return nil, err
}
t.setEphemeralSettings(keyBytes, certBytes, t.cfg.TLSCertPath+".tmp")
t.setEphemeralSettings(keyBytes, certBytes)
err = cert.WriteCertPair(tmpCertPath, "", certBytes, keyBytes)
if err != nil {
@ -583,9 +583,7 @@ func (t *TLSManager) LoadPermanentCertificate(
// setEphemeralSettings sets the TLSManager settings needed when an ephemeral
// certificate is created.
func (t *TLSManager) setEphemeralSettings(keyBytes, certBytes []byte,
certPath string) {
func (t *TLSManager) setEphemeralSettings(keyBytes, certBytes []byte) {
t.ephemeralKey = keyBytes
t.ephemeralCert = certBytes
t.ephemeralCertPath = t.cfg.TLSCertPath + ".tmp"