The Refactor Factory

Less is More

Great work! This code looks better already.

We can remove even more, however. There's one return statement in this code that we can change from explicit to implicit!

Recall that Ruby will automatically return the value of the last expression it evaluates.

Community Forums
Get help and ask questions in the Codecademy Forums
Report a Bug
If you see a bug or any other issue with this page, please report it here.