Use next instead of return which exits the enclosing method

This commit is contained in:
Akinori MUSHA 2015-09-03 10:43:23 +09:00
parent 0e06e8c250
commit b62bf8637d

View file

@ -44,7 +44,7 @@ module WebRequestConcern
encoding = @default_encoding encoding = @default_encoding
else else
# Never try to transcode a binary content # Never try to transcode a binary content
return next
end end
end end
body.encode!(Encoding::UTF_8, encoding) unless body.encoding == Encoding::UTF_8 body.encode!(Encoding::UTF_8, encoding) unless body.encoding == Encoding::UTF_8