From 1f32db1699bfc7fa10463ca7582286dc17feaa04 Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Mon, 20 Jan 2025 13:40:28 +0900 Subject: [PATCH] refuse to remove block --- jwk/ecdsa.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jwk/ecdsa.go b/jwk/ecdsa.go index eb41ffd2..01528201 100644 --- a/jwk/ecdsa.go +++ b/jwk/ecdsa.go @@ -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 @@ -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 { // pointer to an interface value, presumably they want us to dynamically // create an object of the right type