Remove nested if

This commit is contained in:
Jorge Manrubia
2025-12-16 11:11:49 +01:00
parent 2671e52821
commit 5b2fa6b74a
+2 -2
View File
@@ -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