Commit 5351071b authored by Clement Ho's avatar Clement Ho

Fix rubocop

parent 380994e5
......@@ -24,7 +24,7 @@ module FormHelper
dropdown_class: 'dropdown-menu-user dropdown-menu-selectable dropdown-menu-assignee',
placeholder: 'Search users',
data: {
first_user: (current_user.username if current_user),
first_user: current_user&.username,
null_user: true,
current_user: true,
project_id: issuable.project.try(:id),
......
......@@ -17,7 +17,6 @@ describe IssuablesHelper do
end
it 'returns selected user\'s name and counter' do
expect(users_dropdown_label([user, user2])).to eq("#{user.name} + 1 more")
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment