From d0c19d1f87afeb9459644f2b348354d19f3285c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Fri, 5 Jul 2019 17:26:02 +0200 Subject: [PATCH] [bundler/bundler] Use `tap` for `current_platforms` https://github.com/bundler/bundler/commit/78608acf83 --- lib/bundler/definition.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/bundler/definition.rb b/lib/bundler/definition.rb index c0cd4c84e3..de3950a744 100644 --- a/lib/bundler/definition.rb +++ b/lib/bundler/definition.rb @@ -547,10 +547,10 @@ module Bundler def current_platforms current_platform = Bundler.local_platform - platforms = [] - platforms << current_platform if Bundler.feature_flag.specific_platform? - platforms << generic(current_platform) - platforms + [].tap do |platforms| + platforms << current_platform if Bundler.feature_flag.specific_platform? + platforms << generic(current_platform) + end end def change_reason