Skip to content

Commit 7c4e412

Browse files
fix: linter errors
Signed-off-by: Thomas Fossati <[email protected]>
1 parent 3457479 commit 7c4e412

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

cmd/cca/verify_as_attester.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ import (
1717
"github.com/veraison/ccatoken/platform"
1818
"github.com/veraison/ccatoken/realm"
1919
"github.com/veraison/evcli/v2/common"
20-
"github.com/veraison/go-cose"
20+
cose "github.com/veraison/go-cose"
2121
)
2222

2323
type attesterEvidenceBuilder struct {

cmd/psa/verify_as_attester.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ import (
1414
"github.com/spf13/viper"
1515
"github.com/veraison/apiclient/verification"
1616
"github.com/veraison/evcli/v2/common"
17-
"github.com/veraison/go-cose"
17+
cose "github.com/veraison/go-cose"
1818
"github.com/veraison/psatoken"
1919
)
2020

common/common.go

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,13 @@ import (
1616

1717
"github.com/lestrrat-go/jwx/v2/jwk"
1818
"github.com/spf13/afero"
19-
"github.com/veraison/go-cose"
19+
cose "github.com/veraison/go-cose"
2020
)
2121

2222
var Fs = afero.NewOsFs()
2323

2424
func getAlgAndKeyFromJWK(rawJWK []byte) (cose.Algorithm, crypto.Signer, error) {
2525
var (
26-
crv elliptic.Curve
2726
alg cose.Algorithm
2827
sKey crypto.Signer
2928
)
@@ -39,7 +38,7 @@ func getAlgAndKeyFromJWK(rawJWK []byte) (cose.Algorithm, crypto.Signer, error) {
3938

4039
switch v := sKey.(type) {
4140
case *ecdsa.PrivateKey:
42-
crv = v.Curve
41+
crv := v.Curve
4342
if crv == elliptic.P256() {
4443
alg = cose.AlgorithmES256
4544
break

0 commit comments

Comments
 (0)