diff options
author | Peter Leitzen <pleitzen@gitlab.com> | 2019-07-18 07:46:42 +0200 |
---|---|---|
committer | Peter Leitzen <pleitzen@gitlab.com> | 2019-07-18 07:46:42 +0200 |
commit | c6f5994e1d2603df27e9f984620f8452df5c5726 (patch) | |
tree | 3980be72ee6fd125de6c5cc256b78f4ce22e94a0 /qa/qa/scenario/test/sanity/selectors.rb | |
parent | 7fc35ac124f6437e4d04f17416a4e8af9f7a220b (diff) | |
download | gitlab-ce-c6f5994e1d2603df27e9f984620f8452df5c5726.tar.gz |
QA: Prefer `flat_map` over `map` + `flatten`pl-flat_map-qa
Diffstat (limited to 'qa/qa/scenario/test/sanity/selectors.rb')
-rw-r--r-- | qa/qa/scenario/test/sanity/selectors.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qa/qa/scenario/test/sanity/selectors.rb b/qa/qa/scenario/test/sanity/selectors.rb index e05269e8d55..b4d70fc191a 100644 --- a/qa/qa/scenario/test/sanity/selectors.rb +++ b/qa/qa/scenario/test/sanity/selectors.rb @@ -14,7 +14,7 @@ module QA Page::Validator.new(pages) end - validators.map(&:errors).flatten.tap do |errors| + validators.flat_map(&:errors).tap do |errors| break if errors.none? warn <<~EOS |