Skip to content

Commit

Permalink
Update lib/easypost/beta/carrier_metadata.rb
Browse files Browse the repository at this point in the history
Co-authored-by: Junjie(Jack) Chen <[email protected]>
  • Loading branch information
nwithan8 and jchen293 authored Apr 18, 2023
1 parent 8231f6f commit 063a83c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/easypost/beta/carrier_metadata.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,6 @@ def self.retrieve_carrier_metadata(carriers = [], types = [], api_key = nil)
path += URI.encode_www_form(params)

response = EasyPost.make_request(:get, path, api_key, params)
EasyPost::Util.convert_to_easypost_object(response['carriers'], api_key)
EasyPost::Util.convert_to_easypost_object(response['carriers'] || [], api_key)
end
end

0 comments on commit 063a83c

Please sign in to comment.