remove empty line before `end`