diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-07-22 22:29:14 +0000 |
---|---|---|
committer | Dan Davison <ddavison@gitlab.com> | 2019-07-22 22:29:14 +0000 |
commit | 510d03fec26ac64c1ec643f492676c02f4099a56 (patch) | |
tree | 44a4800645c504a6428cdf8f3d19aff23294dc76 /qa/spec | |
parent | 5595c9ded4d3e019c346f18de0f8509ded4a1b5d (diff) | |
download | gitlab-ce-510d03fec26ac64c1ec643f492676c02f4099a56.tar.gz |
QA: Prefer `flat_map` over `map` + `flatten`
Diffstat (limited to 'qa/spec')
-rw-r--r-- | qa/spec/specs/runner_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/qa/spec/specs/runner_spec.rb b/qa/spec/specs/runner_spec.rb index 6c533c6dc7d..3d98f03a982 100644 --- a/qa/spec/specs/runner_spec.rb +++ b/qa/spec/specs/runner_spec.rb @@ -125,9 +125,9 @@ describe QA::Specs::Runner do end def excluded_feature_tags_except(tag) - QA::Runtime::Env.supported_features.except(tag).map do |tag, _| + QA::Runtime::Env.supported_features.except(tag).flat_map do |tag, _| ['--tag', "~requires_#{tag}"] - end.flatten + end end def expect_rspec_runner_arguments(arguments) |