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:
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"
|
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
|
||||||
|
|
||||||
|
|
Laden …
In neuem Issue referenzieren