Skip to Content
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.



Find the unnecessary return keyword and remove it.

Folder Icon

Take this course for free

Already have an account?