File tree Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Expand file tree Collapse file tree 2 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -133,12 +133,7 @@ def empty?
133
133
# HACK dubious
134
134
135
135
def encode! encoding
136
- # TODO: Remove this condition after Ruby 2.2 EOL
137
- if RUBY_VERSION < '2.3.0'
138
- @text = @text . force_encoding encoding
139
- else
140
- @text = String . new @text , encoding : encoding
141
- end
136
+ @text = String . new @text , encoding : encoding
142
137
self
143
138
end
144
139
Original file line number Diff line number Diff line change @@ -124,12 +124,7 @@ def self.change_encoding text, encoding
124
124
if text . kind_of? RDoc ::Comment
125
125
text . encode! encoding
126
126
else
127
- # TODO: Remove this condition after Ruby 2.2 EOL
128
- if RUBY_VERSION < '2.3.0'
129
- text . force_encoding encoding
130
- else
131
- String . new text , encoding : encoding
132
- end
127
+ String . new text , encoding : encoding
133
128
end
134
129
end
135
130
You can’t perform that action at this time.
0 commit comments