From 063a83c2c05d95008ecb0adc086b465dee47b14f Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 18 Apr 2023 15:07:58 -0600 Subject: [PATCH] Update lib/easypost/beta/carrier_metadata.rb Co-authored-by: Junjie(Jack) Chen --- lib/easypost/beta/carrier_metadata.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/easypost/beta/carrier_metadata.rb b/lib/easypost/beta/carrier_metadata.rb index ce2346a2..6903c744 100644 --- a/lib/easypost/beta/carrier_metadata.rb +++ b/lib/easypost/beta/carrier_metadata.rb @@ -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