Skip to content

Commit

Permalink
refuse to remove block
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Jan 20, 2025
1 parent 23f03de commit 1f32db1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions jwk/ecdsa.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ func ecdsaJWKToRaw(keyif Key, hint interface{}) (interface{}, error) {
isECDH = true
default:
rv := reflect.ValueOf(hint)
//nolint:revive
if rv.Kind() == reflect.Ptr && rv.Elem().Kind() == reflect.Interface {
// pointer to an interface value, presumably they want us to dynamically
// create an object of the right type
Expand Down Expand Up @@ -178,6 +179,7 @@ func ecdsaJWKToRaw(keyif Key, hint interface{}) (interface{}, error) {
isECDH = true
default:
rv := reflect.ValueOf(hint)
//nolint:review
if rv.Kind() == reflect.Ptr && rv.Elem().Kind() == reflect.Interface {

Check failure on line 183 in jwk/ecdsa.go

View workflow job for this annotation

GitHub Actions / lint

empty-block: this block is empty, you can remove it (revive)
// pointer to an interface value, presumably they want us to dynamically
// create an object of the right type
Expand Down

0 comments on commit 1f32db1

Please sign in to comment.