Skip to content
Browse files

Add missing(?) return in REXML::Text#value to prevent frozen TypeError.

  • Loading branch information...
1 parent 2ff8349 commit e622be70448dd06972c12891439151647e0a0598 Brandon Mitchell committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rexml/text.rb
View
2 lib/rexml/text.rb
@@ -165,7 +165,7 @@ def inspect
# u = Text.new( "sean russell", false, nil, true )
# u.value #-> "sean russell"
def value
- @unnormalized if @unnormalized
+ return @unnormalized if @unnormalized
doctype = nil
if @parent
doc = @parent.document

0 comments on commit e622be7

Please sign in to comment.
Something went wrong with that request. Please try again.