rework if
Merge pull request #1 from JonRowe/patch-1

Fix YARD check by indenting code in if.