Skip to content

Commit

Permalink
Rewrite multiline ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinco committed Feb 28, 2025
1 parent 51654ec commit e65278b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/helpers/products_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,11 @@ def options_for_control_mechanism

def options_for_relay
[
SettingsHelper.feature_on?(:disable_relay_synaccess_rev_a) ? nil : [
RelaySynaccessRevA, RelaySynaccessRevA.name
],
if SettingsHelper.feature_on?(:disable_relay_synaccess_rev_a)
nil
else
[RelaySynaccessRevA, RelaySynaccessRevA.name]
end,
[RelaySynaccessRevB, RelaySynaccessRevB.name],
[RelayDataprobe, RelayDataprobe.name],
].compact
Expand Down

0 comments on commit e65278b

Please sign in to comment.