Skip to content

Commit 292aacc

Browse files
authored
Merge pull request #620 from johnnyshields/patch-3
Remove redundant array wrapper
2 parents bc8fa9e + 7264617 commit 292aacc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/onelogin/ruby-saml/idp_metadata_parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,7 +442,7 @@ def first_ranked_text(nodes, priority = nil)
442442
priority = Array(priority)
443443
if priority.any?
444444
values = nodes.map(&:text)
445-
Array(priority).detect { |candidate| values.include?(candidate) }
445+
priority.detect { |candidate| values.include?(candidate) }
446446
else
447447
nodes.first.text
448448
end

0 commit comments

Comments
 (0)