From 3097448e3abc4aea941130491c30c82053328e26 Mon Sep 17 00:00:00 2001 From: Nate Harris Date: Tue, 29 Oct 2024 15:50:44 -0600 Subject: [PATCH] - Linting --- EasyPost/Http/Request.cs | 3 ++- EasyPost/Parameters/Tracker/All.cs | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/EasyPost/Http/Request.cs b/EasyPost/Http/Request.cs index 3d541041..3e909545 100644 --- a/EasyPost/Http/Request.cs +++ b/EasyPost/Http/Request.cs @@ -131,7 +131,7 @@ private void BuildQueryParameters() var @switch = new SwitchCase { { param.Value is IList, () => listParameters = AddListQueryParameter(listParameters, param.Key, (IList)param.Value) }, - { SwitchCaseScenario.Default, () => query[param.Key] = param.Value.ToString() } + { SwitchCaseScenario.Default, () => query[param.Key] = param.Value.ToString() }, }; @switch.MatchFirstTrue(); } @@ -168,6 +168,7 @@ private static List AddListQueryParameter(List pairs, string key { continue; } + string pair = $"{keyPrefix}={HttpUtility.UrlEncode(itemString)}"; pairs.Add(pair); } diff --git a/EasyPost/Parameters/Tracker/All.cs b/EasyPost/Parameters/Tracker/All.cs index 643fe5de..4e871d74 100644 --- a/EasyPost/Parameters/Tracker/All.cs +++ b/EasyPost/Parameters/Tracker/All.cs @@ -84,7 +84,7 @@ public class All : BaseAllParameters EndDatetime = dictionary.GetOrNull("end_datetime"), Carrier = dictionary.GetOrNull("carrier"), TrackingCode = dictionary.GetOrNull("tracking_code"), - TrackingCodes = dictionary.GetOrNull>("tracking_codes") + TrackingCodes = dictionary.GetOrNull>("tracking_codes"), }; } }