Broken master: RuboCop: ee/app/components/namespaces/storage/limit_alert_component.rb:25:9: C: Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
Offenses:
ee/app/components/namespaces/storage/limit_alert_component.rb:25:9: C: Style/IfUnlessModifier: Favor modifier if usage when having a single-line body. Another good alternative is the usage of control flow &&/||.
if notification_data[:alert_level] == :error || notification_data[:alert_level] == :alert
^^
27357 files inspected, 1 offense detected, 1 offense auto-correctable
Reason
!94119 (merged) conflicted with !95002 (merged).
Fix
Edited by Peter Leitzen