Skip to content

Commit

Permalink
refuse to remove block, and opt to leave the comment
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisuke Maki committed Jan 20, 2025
1 parent 23f03de commit c860270
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 @@ -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 {

Check failure on line 153 in jwk/ecdsa.go

View workflow job for this annotation

GitHub Actions / lint

empty-block: this block is empty, you can remove it (revive)
//nolint:revive

Check failure on line 154 in jwk/ecdsa.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:revive` is unused for linter "revive" (nolintlint)
// pointer to an interface value, presumably they want us to dynamically
// create an object of the right type
} else {
Expand Down Expand Up @@ -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 {

Check failure on line 182 in jwk/ecdsa.go

View workflow job for this annotation

GitHub Actions / lint

empty-block: this block is empty, you can remove it (revive)
//nolint:revive

Check failure on line 183 in jwk/ecdsa.go

View workflow job for this annotation

GitHub Actions / lint

directive `//nolint:revive` is unused for linter "revive" (nolintlint)
// pointer to an interface value, presumably they want us to dynamically
// create an object of the right type
} else {
Expand Down

0 comments on commit c860270

Please sign in to comment.