Rubocop error removed redundent end