diff --git a/src/SharpCompress/NotNullExtensions.cs b/src/SharpCompress/NotNullExtensions.cs index d0e43284..38e6d6d6 100644 --- a/src/SharpCompress/NotNullExtensions.cs +++ b/src/SharpCompress/NotNullExtensions.cs @@ -9,8 +9,7 @@ namespace SharpCompress; internal static class NotNullExtensions { [MethodImpl(MethodImplOptions.AggressiveInlining)] - public static IEnumerable Empty(this IEnumerable? source) => - source ?? []; + public static IEnumerable Empty(this IEnumerable? source) => source ?? []; [MethodImpl(MethodImplOptions.AggressiveInlining)] public static IEnumerable Empty(this T? source) @@ -69,8 +68,6 @@ internal static class NotNullExtensions } #endif - - public static string NotNullOrEmpty(this string obj, string name) { obj.NotNull(name); @@ -80,5 +77,4 @@ internal static class NotNullExtensions } return obj; } - } diff --git a/src/SharpCompress/Utility.cs b/src/SharpCompress/Utility.cs index 5dc53e62..8cad1437 100644 --- a/src/SharpCompress/Utility.cs +++ b/src/SharpCompress/Utility.cs @@ -98,9 +98,7 @@ internal static class Utility public static void Skip(this Stream source) { using var buffer = MemoryPool.Shared.Rent(TEMP_BUFFER_SIZE); - while (source.Read(buffer.Memory.Span) > 0) - { - } + while (source.Read(buffer.Memory.Span) > 0) { } } public static DateTime DosDateToDateTime(ushort iDate, ushort iTime)