Remove duplicate destroy for report [SCI-2834]

This commit is contained in:
Oleksii Kriuchykhin 2018-11-07 09:55:06 +01:00
parent 0e192cc830
commit 82a11ebca2

View file

@ -237,7 +237,6 @@ class Project < ApplicationRecord
assigns: { project: self, report: report }
parsed_page_html = Nokogiri::HTML(page_html_string)
parsed_pdf_html = parsed_page_html.at_css('#report-content')
report.destroy
tables = parsed_pdf_html.css('.hot-table-contents')
.zip(parsed_pdf_html.css('.hot-table-container'))