Skip to content

Commit

Permalink
Rewrite conditional element in list
Browse files Browse the repository at this point in the history
  • Loading branch information
joaquinco committed Feb 28, 2025
1 parent 2b1f310 commit 51654ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/helpers/products_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ def options_for_control_mechanism

def options_for_relay
[
!SettingsHelper.feature_on?(:disable_relay_synaccess_rev_a) && [
SettingsHelper.feature_on?(:disable_relay_synaccess_rev_a) ? nil : [
RelaySynaccessRevA, RelaySynaccessRevA.name
],
[RelaySynaccessRevB, RelaySynaccessRevB.name],
[RelayDataprobe, RelayDataprobe.name],
].select(&:itself)
].compact
end

def instrument_pricing_modes
Expand Down

0 comments on commit 51654ec

Please sign in to comment.