1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

[bundler/bundler] Use tap for current_platforms

https://github.com/bundler/bundler/commit/78608acf83
This commit is contained in:
David Rodríguez 2019-07-05 17:26:02 +02:00 committed by Hiroshi SHIBATA
parent 6e0dc5594c
commit d0c19d1f87
No known key found for this signature in database
GPG key ID: F9CF13417264FAC2

View file

@ -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