fix rubocop offenses

This commit is contained in:
Alexander Meindl 2023-08-09 10:35:24 +02:00
parent f6d657bb23
commit 4abba730ee
2 changed files with 4 additions and 1 deletions

View File

@ -140,3 +140,6 @@ Layout/LineContinuationLeadingSpace:
# redmine does not use load_defaults: https://rails.rubystyle.guide/#config-defaults
Rails/RedundantPresenceValidationOnBelongsTo:
Enabled: false
Bundler/DuplicatedGroup:
Enabled: false

View File

@ -156,6 +156,6 @@ module AdditionalsJournalsHelper
custom_field = detail.custom_field
return unless custom_field
return { show_diff: true, label: detail.custom_field.name } if custom_field.format.class.change_as_diff
{ show_diff: true, label: detail.custom_field.name } if custom_field.format.class.change_as_diff
end
end