diff options
Diffstat (limited to 'lib/rdoc/comment.rb')
-rw-r--r-- | lib/rdoc/comment.rb | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/rdoc/comment.rb b/lib/rdoc/comment.rb index 63197492c4..fecdcac782 100644 --- a/lib/rdoc/comment.rb +++ b/lib/rdoc/comment.rb @@ -133,12 +133,7 @@ class RDoc::Comment # HACK dubious def encode! encoding - # TODO: Remove this condition after Ruby 2.2 EOL - if RUBY_VERSION < '2.3.0' - @text = @text.force_encoding encoding - else - @text = String.new @text, encoding: encoding - end + @text = String.new @text, encoding: encoding self end |