diff options
| author | mo khan <mo.khan@gmail.com> | 2021-01-30 21:37:05 -0700 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2021-01-30 21:37:05 -0700 |
| commit | 9d46474008bcf7945a8c4a479852ccfd3d6fa811 (patch) | |
| tree | cfeeb0065e0bc25897f117d78af80f8ced148742 /lib/xml/kit/templatable.rb | |
| parent | 2bdb4a1b341160c52a39cc0d339f6f6b4514ad08 (diff) | |
style: fix linter errorsv0.5.0
Diffstat (limited to 'lib/xml/kit/templatable.rb')
| -rw-r--r-- | lib/xml/kit/templatable.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/xml/kit/templatable.rb b/lib/xml/kit/templatable.rb index 0f53325..3fd2daa 100644 --- a/lib/xml/kit/templatable.rb +++ b/lib/xml/kit/templatable.rb @@ -76,9 +76,7 @@ module Xml # @abstract # @since 0.3.0 def asymmetric_cipher(algorithm: Crypto::RsaCipher::ALGORITHM) - unless encryption_certificate - raise Xml::Kit::Error, 'encryption_certificate is not specified.' - end + raise Xml::Kit::Error, 'encryption_certificate is not specified.' unless encryption_certificate @asymmetric_cipher ||= Crypto.cipher_for( algorithm, |
