lib/message_bus/rack/diagnostics.rb in message_bus-2.2.4 vs lib/message_bus/rack/diagnostics.rb in message_bus-3.0.0
- old
+ new
@@ -43,11 +43,11 @@
content = asset_contents(asset)
split = asset.split('.')
return [200, { 'Content-Type' => 'application/javascript;charset=UTF-8' }, [content]]
end
- return [404, {}, ['not found']]
+ [404, {}, ['not found']]
end
private
def js_asset(name, type = "text/javascript")
@@ -90,8 +90,9 @@
#{js_asset "message-bus.js"}
#{js_asset "application.jsx", "text/jsx"}
</body>
</html>
HTML
- return [200, { "content-type" => "text/html;" }, [html]]
+
+ [200, { "content-type" => "text/html;" }, [html]]
end
end