Skip to content

Commit

Permalink
- Linting
Browse files Browse the repository at this point in the history
  • Loading branch information
nwithan8 committed Oct 29, 2024
1 parent 3622eeb commit 3097448
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion EasyPost/Http/Request.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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();
}
Expand Down Expand Up @@ -168,6 +168,7 @@ private static List<string> AddListQueryParameter(List<string> pairs, string key
{
continue;
}

string pair = $"{keyPrefix}={HttpUtility.UrlEncode(itemString)}";
pairs.Add(pair);
}
Expand Down
2 changes: 1 addition & 1 deletion EasyPost/Parameters/Tracker/All.cs
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public class All : BaseAllParameters<Models.API.Tracker>
EndDatetime = dictionary.GetOrNull<string>("end_datetime"),
Carrier = dictionary.GetOrNull<string>("carrier"),
TrackingCode = dictionary.GetOrNull<string>("tracking_code"),

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / Coverage_Requirements

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / lint

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / Visual_Basic_Compatibility_Test

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / NET_Tests (NetStandard20)

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / NET_Tests (Net60)

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / NET_Tests (Net80)

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / NET_Tests (Net70)

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / NET_Tests (Net50)

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'

Check warning on line 86 in EasyPost/Parameters/Tracker/All.cs

View workflow job for this annotation

GitHub Actions / FSharp_Compatibility_Tests

'All.TrackingCode' is obsolete: 'This property will be removed in a future version and replaced with TrackingCodes.'
TrackingCodes = dictionary.GetOrNull<List<string>>("tracking_codes")
TrackingCodes = dictionary.GetOrNull<List<string>>("tracking_codes"),
};
}
}
Expand Down

0 comments on commit 3097448

Please sign in to comment.