pkg/crypto: Replace interface{} with any

Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
This commit is contained in:
Thomas Hipp 2023-09-26 19:54:00 +02:00
parent a2a3f8cd3f
commit 81d15a8436
No known key found for this signature in database
GPG key ID: 36F3DB891755E09B

View file

@ -7,7 +7,7 @@ import (
"gopkg.in/square/go-jose.v2"
)
func Sign(object interface{}, signer jose.Signer) (string, error) {
func Sign(object any, signer jose.Signer) (string, error) {
payload, err := json.Marshal(object)
if err != nil {
return "", err