Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

fix(style): rubocop arrests

as-op68b92a6a340a
diff --git a/app/models/work_package/pdf_export/common.rb b/app/models/work_package/pdf_export/common.rb
index 0d06dd11bb7..1c0de7c1e57 100644
--- a/app/models/work_package/pdf_export/common.rb
+++ b/app/models/work_package/pdf_export/common.rb
@@ -152,11 +152,9 @@ module WorkPackage::PDFExport::Common
end
def pdf_table_auto_widths(data, column_widths, options, &)
- begin
- pdf.table(data, options.merge({ width: pdf.bounds.width }), &)
- rescue Prawn::Errors::CannotFit
- pdf.table(data, options.merge({ column_widths: }), &)
- end
+ pdf.table(data, options.merge({ width: pdf.bounds.width }), &)
+ rescue Prawn::Errors::CannotFit
+ pdf.table(data, options.merge({ column_widths: }), &)
end
def measure_text_width(text, opts)