[rubygems/rubygems] Simplify logic to add current platform a bit
https://github.com/rubygems/rubygems/commit/e102516e27
This commit is contained in:
parent
1164b6a7ba
commit
cf6efd1bb7
@ -671,19 +671,18 @@ module Bundler
|
|||||||
end
|
end
|
||||||
|
|
||||||
def add_current_platform
|
def add_current_platform
|
||||||
@most_specific_non_local_locked_ruby_platform = find_most_specific_non_local_locked_ruby_platform
|
return if @platforms.include?(local_platform)
|
||||||
|
|
||||||
|
@most_specific_non_local_locked_ruby_platform = find_most_specific_locked_ruby_platform
|
||||||
return if @most_specific_non_local_locked_ruby_platform
|
return if @most_specific_non_local_locked_ruby_platform
|
||||||
|
|
||||||
add_platform(local_platform)
|
add_platform(local_platform)
|
||||||
end
|
end
|
||||||
|
|
||||||
def find_most_specific_non_local_locked_ruby_platform
|
def find_most_specific_locked_ruby_platform
|
||||||
return unless generic_local_platform_is_ruby? && current_platform_locked?
|
return unless generic_local_platform_is_ruby? && current_platform_locked?
|
||||||
|
|
||||||
most_specific_locked_ruby_platform = most_specific_locked_platform
|
most_specific_locked_platform
|
||||||
return unless most_specific_locked_ruby_platform != local_platform
|
|
||||||
|
|
||||||
most_specific_locked_ruby_platform
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def change_reason
|
def change_reason
|
||||||
|
Loading…
x
Reference in New Issue
Block a user