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

Fix rubocop

parent 380994e5
...@@ -24,7 +24,7 @@ module FormHelper ...@@ -24,7 +24,7 @@ module FormHelper
dropdown_class: 'dropdown-menu-user dropdown-menu-selectable dropdown-menu-assignee', dropdown_class: 'dropdown-menu-user dropdown-menu-selectable dropdown-menu-assignee',
placeholder: 'Search users', placeholder: 'Search users',
data: { data: {
first_user: (current_user.username if current_user), first_user: current_user&.username,
null_user: true, null_user: true,
current_user: true, current_user: true,
project_id: issuable.project.try(:id), project_id: issuable.project.try(:id),
......
...@@ -17,7 +17,6 @@ describe IssuablesHelper do ...@@ -17,7 +17,6 @@ describe IssuablesHelper do
end end
it 'returns selected user\'s name and counter' do it 'returns selected user\'s name and counter' do
expect(users_dropdown_label([user, user2])).to eq("#{user.name} + 1 more") expect(users_dropdown_label([user, user2])).to eq("#{user.name} + 1 more")
end end
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