diff options
author | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-05 17:26:02 +0200 |
---|---|---|
committer | David RodrÃguez <deivid.rodriguez@riseup.net> | 2019-07-10 12:08:16 +0200 |
commit | 78608acf836bed04c5e36f4c1201dcf7a7ec1420 (patch) | |
tree | e8eb3c983e6752ffac19f01c87cc9566c47ec208 /lib | |
parent | 3a2d2f025081755bdb38af660897e7b2f749a33a (diff) | |
download | bundler-78608acf836bed04c5e36f4c1201dcf7a7ec1420.tar.gz |
Use `tap` for `current_platforms`auto_multiplatform
Diffstat (limited to 'lib')
-rw-r--r-- | lib/bundler/definition.rb | 8 |
1 files 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 |