Skip to content

Commit 5e79442

Browse files
committed
- Linting
1 parent 87034f9 commit 5e79442

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

EasyPost/Utilities/Cryptography.cs

+2
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ public static byte[] AsByteArray(this string str, Encoding? encoding = null)
4646
/// </summary>
4747
/// <param name="bytes">Byte array to convert to hex string.</param>
4848
/// <returns>Hex string equivalent of input byte array.</returns>
49+
#pragma warning disable CA1859 // Use byte[] instead of IReadOnlyList<byte>
4950
private static string AsHexString(this IReadOnlyList<byte> bytes)
5051
{
5152
// Fastest safe way to convert a byte array to hex string,
@@ -61,6 +62,7 @@ private static string AsHexString(this IReadOnlyList<byte> bytes)
6162

6263
return new string(result).ToLowerInvariant();
6364
}
65+
#pragma warning restore CA1859 // Use byte[] instead of IReadOnlyList<byte>
6466

6567
/// <summary>
6668
/// Convert a string to a hex string using a specific encoding.

EasyPost/Utilities/Internal/Enum.cs

-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
using System;
2-
using System.Collections;
32
using System.Collections.Generic;
43
using System.Globalization;
54
using System.Linq;

0 commit comments

Comments
 (0)