mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Standardise on collection methods
Done with `rubocop --auto-correct --only CollectionMethods`
This commit is contained in:
parent
814cb82f22
commit
ec8b940b2c
319 changed files with 453 additions and 453 deletions
|
|
@ -133,7 +133,7 @@ module Fog
|
|||
current_prices = resp.body['objects']
|
||||
|
||||
current_pricing_pairs = current_levels.map do |resource, level|
|
||||
price_for_resource_and_level = current_prices.detect do |price|
|
||||
price_for_resource_and_level = current_prices.find do |price|
|
||||
price['resource'] == resource
|
||||
end
|
||||
price_for_resource_and_level ||= {}
|
||||
|
|
@ -151,7 +151,7 @@ module Fog
|
|||
current_prices = resp.body['objects']
|
||||
|
||||
current_pricing_pairs = current_levels.map do |resource, level|
|
||||
price_for_resource_and_level = current_prices.detect do |price|
|
||||
price_for_resource_and_level = current_prices.find do |price|
|
||||
price['level'] == level && price['resource'] == resource
|
||||
end
|
||||
price_for_resource_and_level ||= {}
|
||||
|
|
@ -169,7 +169,7 @@ module Fog
|
|||
current_prices = resp.body['objects']
|
||||
|
||||
current_pricing_pairs = current_levels.map do |resource, level|
|
||||
price_for_resource_and_level = current_prices.detect do |price|
|
||||
price_for_resource_and_level = current_prices.find do |price|
|
||||
price['level'] == level && price['resource'] == resource
|
||||
end
|
||||
price_for_resource_and_level ||= {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue