From 510d03fec26ac64c1ec643f492676c02f4099a56 Mon Sep 17 00:00:00 2001 From: Peter Leitzen Date: Mon, 22 Jul 2019 22:29:14 +0000 Subject: QA: Prefer `flat_map` over `map` + `flatten` --- qa/spec/specs/runner_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'qa/spec/specs') 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) -- cgit v1.2.1