Skip to content

Commit 376e3bc

Browse files
tompngnaitoh
andauthored
Update lib/rexml/functions.rb
Co-authored-by: NAITOH Jun <naitoh@gmail.com>
1 parent f5c707d commit 376e3bc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/rexml/functions.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,9 @@ def target_named_node(node_set = nil)
7979
node =
8080
case node_set
8181
when nil
82-
node = @context[:node]
82+
@context[:node]
8383
when Array
84-
node = XPathParser.sort(node_set).first
84+
XPathParser.sort(node_set).first
8585
end
8686
node if node.respond_to?(:namespace)
8787
end

0 commit comments

Comments
 (0)