Skip to content

Commit

Permalink
Fix new rubocop offense
Browse files Browse the repository at this point in the history
  • Loading branch information
hakanensari committed Oct 31, 2024
1 parent daf74be commit b28bd61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/peddler/endpoint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ def find(aws_region)
raise ArgumentError, "#{aws_region} not found"
end

new(**values.merge(aws_region: aws_region))
new(**values, aws_region: aws_region)
end

def find_by_selling_region(selling_region)
aws_region, values = ENDPOINTS.find { |_, v| v[:selling_region] == selling_region } ||
raise(ArgumentError, "#{selling_region} not found")

new(**values.merge(aws_region: aws_region))
new(**values, aws_region: aws_region)
end
end

Expand Down
4 changes: 2 additions & 2 deletions lib/peddler/marketplace.rb
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def find(country_code)
raise ArgumentError, "#{country_code} not found"
end

new(**values.merge(country_code: country_code))
new(**values, country_code: country_code)
end

# Returns the marketplace ID for the given country code
Expand All @@ -73,7 +73,7 @@ def ids(*country_codes)
# @return [Array<Peddler::Marketplace>]
def all
MARKETPLACE_IDS.map do |country_code, values|
new(**values.merge(country_code: country_code))
new(**values, country_code: country_code)
end
end
end
Expand Down

0 comments on commit b28bd61

Please sign in to comment.