1
0
mirror of https://git.sr.ht/~adnano/go-gemini synced 2024-11-26 10:23:45 +01:00

certificate.Store: Don't call os.MkdirAll

This commit is contained in:
adnano 2021-03-06 13:10:45 -05:00
parent 162928e85f
commit 16e4e9ad7d

@ -6,7 +6,6 @@ import (
"crypto/x509/pkix"
"errors"
"fmt"
"os"
"path/filepath"
"strings"
"sync"
@ -83,10 +82,6 @@ func (s *Store) write(scope string, cert tls.Certificate) error {
if s.path != "" {
certPath := filepath.Join(s.path, scope+".crt")
keyPath := filepath.Join(s.path, scope+".key")
dir := filepath.Dir(certPath)
os.MkdirAll(dir, 0755)
if err := Write(cert, certPath, keyPath); err != nil {
return err
}