This commit is contained in:
Adam Hathcock
2025-10-22 09:19:30 +01:00
parent d8797b69e4
commit 62bee15f00
2 changed files with 2 additions and 8 deletions

View File

@@ -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;
}
}