diff options
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, |
