mirror of
https://github.com/Fishwaldo/huginn.git
synced 2025-03-29 02:01:27 +00:00
Use next
instead of return
which exits the enclosing method
This commit is contained in:
parent
0e06e8c250
commit
b62bf8637d
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue