Cleanup unneeded comments, touch up syntax

This commit is contained in:
Kabiru Mwenja
2026-05-26 13:40:29 +03:00
parent e269fddffc
commit 666069e126
2 changed files with 1 additions and 4 deletions
@@ -72,7 +72,7 @@ module OpenProject::TextFormatting
end
def mention_work_package_ids
doc.css('mention[data-type="work_package"]').filter_map { |m| mention_id(m)&.to_i }.uniq
doc.css('mention[data-type="work_package"]').filter_map { mention_id(it)&.to_i }.uniq
end
def mention_anchor(mention)
@@ -38,9 +38,6 @@ module OpenProject::TextFormatting::Matchers
# Shared with the PDF-export subclass in `app/models/work_package/exports/macros/links.rb`.
HASH_TRIGGERS = %w[# ## ###].freeze
# Builds the user-facing label for the static-anchor variant of `##`/
# `###` macros. Centralised so the PatternMatcherFilter path here and
# the `<mention>`-envelope path in `MentionFilter` stay in lockstep.
def self.compose_static_macro_label(work_package, label:, detailed:)
parts = []
parts << work_package.status&.name if detailed