0
0
Fork 1
Spiegel von https://github.com/paviliondev/discourse-custom-wizard.git synchronisiert 2024-11-25 18:50:27 +01:00

remove redundant returns

Dieser Commit ist enthalten in:
merefield 2021-11-09 15:01:17 +00:00
Ursprung c6b8e08e38
Commit 584ee6d24e

Datei anzeigen

@ -61,23 +61,23 @@ class CustomWizard::Subscription
when "actions" when "actions"
case self.type case self.type
when "business" when "business"
return [] []
when "standard" when "standard"
return SUBSCRIPTION_LEVELS[:business][kategory.to_sym] SUBSCRIPTION_LEVELS[:business][kategory.to_sym]
else else
return SUBSCRIPTION_LEVELS[:standard][kategory.to_sym] + SUBSCRIPTION_LEVELS[:business][kategory.to_sym] SUBSCRIPTION_LEVELS[:standard][kategory.to_sym] + SUBSCRIPTION_LEVELS[:business][kategory.to_sym]
end end
when "custom_fields" when "custom_fields"
case self.type case self.type
when "business" when "business"
return [] []
when "standard" when "standard"
return SUBSCRIPTION_LEVELS[:business][kategory.to_sym][sub_kategory.to_sym]; SUBSCRIPTION_LEVELS[:business][kategory.to_sym][sub_kategory.to_sym];
else else
return SUBSCRIPTION_LEVELS[:standard][kategory.to_sym][sub_kategory.to_sym] + SUBSCRIPTION_LEVELS[:business][kategory.to_sym][sub_kategory.to_sym] SUBSCRIPTION_LEVELS[:standard][kategory.to_sym][sub_kategory.to_sym] + SUBSCRIPTION_LEVELS[:business][kategory.to_sym][sub_kategory.to_sym]
end end
else else
return [] []
end end
end end