Correcting rubocop offense