← Back to context Comment by Narishma 20 hours ago Didn't you just shift the branch to the calculateDiscount() function? 1 comment Narishma Reply 1718627440 17 hours ago Not necessarily. return 1 - user.isPremiumMember * 0.1; would also cut it.
Not necessarily.
would also cut it.