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

lint(codestyle): shorter code

as-op6317f82a45ff
diff --git a/app/models/work_package/pdf_export/common/logo.rb b/app/models/work_package/pdf_export/common/logo.rb
index 90488255839..4a6c0036b56 100644
--- a/app/models/work_package/pdf_export/common/logo.rb
+++ b/app/models/work_package/pdf_export/common/logo.rb
@@ -5,9 +5,7 @@ module WorkPackage::PDFExport::Common::Logo
end
def logo_image_filename
- image_file = custom_logo_image_filename
- image_file = Rails.root.join("app/assets/images/logo_openproject.png") if image_file.nil?
- image_file
+ custom_logo_image_filename || Rails.root.join("app/assets/images/logo_openproject.png")
end
def custom_logo_image_filename