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