From c86027022628dfd3be42e969ecd771b3db1bde5e Mon Sep 17 00:00:00 2001 From: Daisuke Maki Date: Mon, 20 Jan 2025 13:36:10 +0900 Subject: [PATCH] refuse to remove block, and opt to leave the comment --- jwk/ecdsa.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jwk/ecdsa.go b/jwk/ecdsa.go index eb41ffd2..84e8254b 100644 --- a/jwk/ecdsa.go +++ b/jwk/ecdsa.go @@ -151,6 +151,7 @@ func ecdsaJWKToRaw(keyif Key, hint interface{}) (interface{}, error) { default: rv := reflect.ValueOf(hint) if rv.Kind() == reflect.Ptr && rv.Elem().Kind() == reflect.Interface { + //nolint:revive // pointer to an interface value, presumably they want us to dynamically // create an object of the right type } else { @@ -179,6 +180,7 @@ func ecdsaJWKToRaw(keyif Key, hint interface{}) (interface{}, error) { default: rv := reflect.ValueOf(hint) if rv.Kind() == reflect.Ptr && rv.Elem().Kind() == reflect.Interface { + //nolint:revive // pointer to an interface value, presumably they want us to dynamically // create an object of the right type } else {