lib/checkstyle_format/plugin.rb in danger-checkstyle_xml-0.0.3 vs lib/checkstyle_format/plugin.rb in danger-checkstyle_xml-0.0.4

- old
+ new

@@ -56,16 +56,15 @@ present_elements = doc.nodes.first.nodes.reject do |test| test.nodes.empty? end - base_path_suffix = @base_path.end_with?("/") ? "" : "/" - - base_path = @base_path + base_path_suffix + # base_path_suffix = @base_path.end_with?("/") ? "" : "/" + # base_path = @base_path + base_path_suffix present_elements.flat_map do |parent| parent.nodes.map do |child| - CheckstyleError.generate(child, parent, base_path) + CheckstyleError.generate(child, parent, @base_path) end end end def send_comment(errors, inline_mode)