1
0
Fork 0

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"
case self.type
when "business"
return []
[]
when "standard"
return SUBSCRIPTION_LEVELS[:business][kategory.to_sym]
SUBSCRIPTION_LEVELS[:business][kategory.to_sym]
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
when "custom_fields"
case self.type
when "business"
return []
[]
when "standard"
return SUBSCRIPTION_LEVELS[:business][kategory.to_sym][sub_kategory.to_sym];
SUBSCRIPTION_LEVELS[:business][kategory.to_sym][sub_kategory.to_sym];
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
else
return []
[]
end
end