Skip to content

Commit

Permalink
Lets not have private methods
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Dec 27, 2021
1 parent 3417a1c commit cb9d32e
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 4 deletions.
2 changes: 0 additions & 2 deletions lib/jwt/extension/decode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,6 @@ def decode!(payload, options = {})
create_decode_options(options)).decode_segments
end

private

def decode_signing_key_from_options(options)
options[:signing_key] || self.signing_key
end
Expand Down
2 changes: 0 additions & 2 deletions lib/jwt/extension/encode.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ def encode!(payload, options = {})
).segments
end

private

def signing_key_from_options(options)
key = options[:signing_key] || self.signing_key
raise ::JWT::SigningKeyMissing, 'No key given for signing' if key.nil?
Expand Down

0 comments on commit cb9d32e

Please sign in to comment.