Update the solution according to Blake's comments

Take a look at this method. What's the return value of `(equilateral || isosceles)`? Is there something you can do to remove the ternary based on that fact?