Skip to content

Commit ef28fb5

Browse files
authored
Merge pull request #9 from quix-labs/dev
fix: remove unused module + string concatenation
2 parents 3cb54f3 + 89b7849 commit ef28fb5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

module.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"log/slog"
1515
"os"
1616
"software.sslmate.com/src/go-pkcs12"
17-
"time"
17+
"strconv"
1818
)
1919

2020
func init() {
@@ -64,9 +64,9 @@ func (getter *PfxCertGetter) Provision(ctx caddy.Context) error {
6464
modTime := fileInfo.ModTime()
6565

6666
if *getter.FetchFullChain {
67-
getter.CacheCertName = getter.Path + "." + modTime.Unix() + "-fullchain+pkey.pem"
67+
getter.CacheCertName = getter.Path + "." + strconv.FormatInt(modTime.Unix(), 10) + "-fullchain+pkey.pem"
6868
} else {
69-
getter.CacheCertName = getter.Path + "." + modTime.Unix() + "-chain+pkey.pem"
69+
getter.CacheCertName = getter.Path + "." + strconv.FormatInt(modTime.Unix(), 10) + "-chain+pkey.pem"
7070
}
7171

7272
return nil

0 commit comments

Comments
 (0)