Use `next` instead of `return` which exits the enclosing method

Akinori MUSHA 9 gadi atpakaļ
vecāks
revīzija
b62bf8637d
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      app/concerns/web_request_concern.rb

+ 1 - 1
app/concerns/web_request_concern.rb

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