cleanup: Add NotNull attr to "assert_value" nullable ext

This commit is contained in:
John Colvin committed 2025-11-15 12:46:24 -05:00
1 parent ad0e9fa3c9
commit 7d374346f2
1 file changed
+2 -1
@@ -1,9 +1,10 @@
#nullable enable
namespace Spark.Core {
using System;
using System.Diagnostics.CodeAnalysis;
public static class NullableExtensions {
public static T assert_value<T>(this T? nullable) where T : struct =>
public static T assert_value<T>([NotNull]this T? nullable) where T : struct =>
nullable ?? throw new ArgumentNullException(nameof(nullable));
}
}