From 62d7456804b2fff5f39f1409f4c5eeeab3fe2f0f Mon Sep 17 00:00:00 2001 From: Dan Balasescu Date: Thu, 7 Jul 2022 18:02:47 +0900 Subject: [PATCH] Change AsNonNull to NotNull return --- osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs b/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs index 3bf2f21cfa..2f584119ee 100644 --- a/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs +++ b/osu.Framework/Extensions/ObjectExtensions/ObjectExtensions.cs @@ -19,7 +19,7 @@ public static class ObjectExtensions /// The nullable object. /// The type of the object. /// The non-nullable object corresponding to . - [return: NotNullIfNotNull("obj")] + [return: NotNull] public static T AsNonNull(this T? obj) => obj!; ///