cleanup: Add NotNull attr to "assert_value" nullable ext

This commit is contained in:
John Colvin committed 2025-11-19 14:44:54 -05:00
1 parent c1cf1eab0a
commit 2c8b2b6918
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));
}
}