frameit/lib/frameit/config_parser.rb in fastlane_hotfix-2.165.1 vs frameit/lib/frameit/config_parser.rb in fastlane_hotfix-2.187.0
- old
+ new
@@ -119,15 +119,15 @@
value.kind_of?(Integer) || (value.end_with?('%') && value.to_f > 0)
end
def self.supported_color?(value)
return false if value.nil?
- Color.all_colors.any? { |c| c == value }
+ Color.all_colors.any?(value)
end
def self.supported_platform?(value)
return false if value.nil?
- Platform.all_platforms.any? { |c| c == value }
+ Platform.all_platforms.any?(value)
end
def self.supported_device?(value)
return !Device.find_device_by_id_or_name(value).nil?
end