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(lint): obey rubocop

as-ope0a0f1ba5602
diff --git a/app/models/work_package/pdf_export/gantt/gantt_builder.rb b/app/models/work_package/pdf_export/gantt/gantt_builder.rb
index 20104acc4c1..9b643b408f4 100644
--- a/app/models/work_package/pdf_export/gantt/gantt_builder.rb
+++ b/app/models/work_package/pdf_export/gantt/gantt_builder.rb
@@ -741,8 +741,7 @@ module WorkPackage::PDFExport::Gantt
end
def format_pdf_date(date)
- return "" if date.nil?
- format_date date
+ date.nil? ? "" : format_date(date)
end
# Builds the shape for the given work package