Put exit statements in both conditional branches.