chore: linter: perfsprint

Signed-off-by: Jakob Borg <jakob@kastelo.net>
This commit is contained in:
Jakob Borg
2025-10-23 22:48:54 +02:00
parent c883f49a24
commit 98cf5872e9
9 changed files with 17 additions and 16 deletions
+2 -2
View File
@@ -14,9 +14,9 @@ import (
"crypto/sha256"
"crypto/x509"
"encoding/asn1"
"encoding/hex"
"encoding/pem"
"errors"
"fmt"
"io"
"math/big"
@@ -135,7 +135,7 @@ func hashReader(r io.Reader) ([]byte, error) {
if _, err := io.Copy(h, r); err != nil {
return nil, err
}
hash := []byte(fmt.Sprintf("%x", h.Sum(nil)))
hash := []byte(hex.EncodeToString(h.Sum(nil)))
return hash, nil
}