mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix rubocop issues (#14715)
This commit is contained in:
@@ -12,7 +12,7 @@ module Onebox
|
||||
|
||||
def xml
|
||||
return @xml if defined?(@xml)
|
||||
doc = Nokogiri::XML(URI.open(URI.join(@url, "?report=xml&format=text")))
|
||||
doc = Nokogiri::XML(URI.join(@url, "?report=xml&format=text").open)
|
||||
pre = doc.xpath("//pre")
|
||||
@xml = Nokogiri::XML("<root>" + pre.text + "</root>")
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user