Commit c2119833 authored by Marius Rackwitz's avatar Marius Rackwitz

[Style] Remove var initialization before branches

parent ac4fe54e
...@@ -345,12 +345,10 @@ module Pod ...@@ -345,12 +345,10 @@ module Pod
# @return [(Array<Specification>, Platform) => String] # @return [(Array<Specification>, Platform) => String]
# #
def scope_suffix_for_distinctor(distinctors) def scope_suffix_for_distinctor(distinctors)
result = nil
all_spec_variants = distinctors.map { |k| k[0] } all_spec_variants = distinctors.map { |k| k[0] }
all_platform_variants = distinctors.map { |k| k[1] } all_platform_variants = distinctors.map { |k| k[1] }
all_platform_name_variants = all_platform_variants.map(&:name) all_platform_name_variants = all_platform_variants.map(&:name)
platform_name_proc = nil
if all_platform_name_variants.uniq.count == all_platform_name_variants.count if all_platform_name_variants.uniq.count == all_platform_name_variants.count
# => Platform name # => Platform name
platform_name_proc = proc { |platform| Platform.string_name(platform.symbolic_name).tr(' ', '') } platform_name_proc = proc { |platform| Platform.string_name(platform.symbolic_name).tr(' ', '') }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment