Skip to content

Fix Performance/FlatMap offenses

Sayeed Ahmad requested to merge sayeedahmad/gitlab:master into master
  • Please check this box if this contribution uses AI-generated content (including content generated by GitLab Duo features) as outlined in the GitLab DCO & CLA. As a benefit of being a GitLab Community Contributor, you can request access to GitLab Duo.

This MR fixes the Rubocop Performance/FlapMap offenses.

Related to the issue #239356

Following validation was successful after changes in respective Ruby files:

bundle exec rubocop -A \
'spec/controllers/projects/issues_controller_spec.rb' \
'spec/lib/bulk_imports/groups/stage_spec.rb' \
'spec/lib/bulk_imports/projects/stage_spec.rb' \
'spec/lib/gitlab/ci/parsers/test/junit_spec.rb' \
'spec/requests/api/graphql/ci/pipelines_spec.rb' \
'spec/services/ci/create_pipeline_service/evaluate_runner_tags_spec.rb' \
'spec/services/git/process_ref_changes_service_spec.rb' \
'spec/support/shared_examples/models/with_debian_distributions_shared_examples.rb' \
'spec/support/shared_examples/requests/api/graphql/issue_list_shared_examples.rb'
Inspecting 9 files
.........
9 files inspected, no offenses detected

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading