Skip to content

Commit

Permalink
Fix ruby version error
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshields committed Nov 25, 2023
1 parent fed7a15 commit 19c2932
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/onelogin/ruby-saml/settings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ def get_sp_certs_multi
certs_for_type = sp_cert_multi[type] || sp_cert_multi[type.to_s]
next if !certs_for_type || certs_for_type.empty?

unless certs_for_type.is_a?(Array) && certs_for_type.all?(Hash)
unless certs_for_type.is_a?(Array) && certs_for_type.all? { |cert| cert.is_a?(Hash) }
raise ArgumentError.new("sp_cert_multi :#{type} node must be an Array of Hashes")
end

Expand Down

0 comments on commit 19c2932

Please sign in to comment.