remove redundant returns
Dieser Commit ist enthalten in:
Ursprung
c6b8e08e38
Commit
584ee6d24e
1 geänderte Dateien mit 7 neuen und 7 gelöschten Zeilen
|
@ -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
|
||||
|
||||
|
|
Laden …
In neuem Issue referenzieren