Fix YARD check by indenting code in if.