Commit 284a3ba

mo <mo.khan@gmail.com>
2017-12-24 04:17:43
remove condition that cannot evaluate.
1 parent 6d841c3
Changed files (1)
lib
saml
lib/saml/kit/document.rb
@@ -117,13 +117,10 @@ module Saml
       end
 
       def must_be_expected_type
-        return if to_h.nil?
-
         errors[:base] << error_message(:invalid) unless expected_type?
       end
 
       def expected_type?
-        return false if to_xml.blank?
         to_h[name].present?
       end