From cb9d32e3f89f20f052ac441d96fd796310ee642c Mon Sep 17 00:00:00 2001 From: Joakim Antman Date: Mon, 27 Dec 2021 22:55:35 +0200 Subject: [PATCH] Lets not have private methods --- lib/jwt/extension/decode.rb | 2 -- lib/jwt/extension/encode.rb | 2 -- 2 files changed, 4 deletions(-) diff --git a/lib/jwt/extension/decode.rb b/lib/jwt/extension/decode.rb index 2696e134..c8f42e05 100644 --- a/lib/jwt/extension/decode.rb +++ b/lib/jwt/extension/decode.rb @@ -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 diff --git a/lib/jwt/extension/encode.rb b/lib/jwt/extension/encode.rb index 1cb1e728..c6d801cc 100644 --- a/lib/jwt/extension/encode.rb +++ b/lib/jwt/extension/encode.rb @@ -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?