Refactored for style

Solution to leveluprails triangle_facts exercise. @bwthomas 
Per style guide, avoid inline if's for this exercise