fmt
This commit is contained in:
parent
d8797b69e4
commit
62bee15f00
2 changed files with 2 additions and 8 deletions
|
|
@ -9,8 +9,7 @@ namespace SharpCompress;
|
|||
internal static class NotNullExtensions
|
||||
{
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static IEnumerable<T> Empty<T>(this IEnumerable<T>? source) =>
|
||||
source ?? [];
|
||||
public static IEnumerable<T> Empty<T>(this IEnumerable<T>? source) => source ?? [];
|
||||
|
||||
[MethodImpl(MethodImplOptions.AggressiveInlining)]
|
||||
public static IEnumerable<T> Empty<T>(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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
|
|
@ -98,9 +98,7 @@ internal static class Utility
|
|||
public static void Skip(this Stream source)
|
||||
{
|
||||
using var buffer = MemoryPool<byte>.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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue