Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ruby warning: "assigned but unused variable - derived_key" #27

Open
jessevdp opened this issue Apr 24, 2024 · 0 comments · May be fixed by #28
Open

Ruby warning: "assigned but unused variable - derived_key" #27

jessevdp opened this issue Apr 24, 2024 · 0 comments · May be fixed by #28

Comments

@jessevdp
Copy link

Hey!

It seems there's a (small) "problem" in this Gems code that's causing a Ruby warning.
(I'm seeing the warning in the output of my test suite, which uses the JOSE Gem 😄)

Would you be open to a "fix"?

Details

# reproduction_case.rb
require 'bundler/inline'

gemfile do
  source 'https://rubygems.org'
  gem 'jose'
end

require 'jose'
$ ruby -w reproduction_case.rb
/Users/<me>/.rbenv/versions/3.2.2/lib/ruby/gems/3.2.0/gems/jose-1.2.0/lib/jose/jwe/alg_xc20p_kw.rb:64: warning: assigned but unused variable - derived_key

The seemingly unused variable:

derived_key = key

jessevdp added a commit to jessevdp/ruby-jose that referenced this issue Apr 24, 2024
@jessevdp jessevdp linked a pull request Apr 24, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant