Skip to content

Commit 2552a8d

Browse files
committed
remove unnecessary type conversion
1 parent f495dc3 commit 2552a8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

acme/jws.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ func jwsEncodeJSON(claimset interface{}, key crypto.Signer, kid KeyID, nonce, ur
9292
if err != nil {
9393
return nil, err
9494
}
95-
phead := base64.RawURLEncoding.EncodeToString([]byte(phJSON))
95+
phead := base64.RawURLEncoding.EncodeToString(phJSON)
9696
var payload string
9797
if val, ok := claimset.(string); ok {
9898
payload = val

0 commit comments

Comments
 (0)