Remove nested if
This commit is contained in:
@@ -31,8 +31,8 @@ module Account::Billing
|
||||
def active_subscription
|
||||
if comped?
|
||||
comped_subscription
|
||||
else
|
||||
subscription if subscription&.active?
|
||||
elsif subscription&.active?
|
||||
subscription
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user