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:
parent
6e0dc5594c
commit
d0c19d1f87
1 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue