From 584ee6d24edb0937d7a8846dc0bfb0d0bf4496e2 Mon Sep 17 00:00:00 2001 From: merefield Date: Tue, 9 Nov 2021 15:01:17 +0000 Subject: [PATCH] remove redundant returns --- lib/custom_wizard/subscription.rb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/lib/custom_wizard/subscription.rb b/lib/custom_wizard/subscription.rb index 7d94eb89..1ab53dc9 100644 --- a/lib/custom_wizard/subscription.rb +++ b/lib/custom_wizard/subscription.rb @@ -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