Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Commit 5702d9e

Browse files
committed
We don't want to check nullness here
1 parent dda94d2 commit 5702d9e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/GitHub.Extensions/TaskExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,8 @@ public static async Task Catch(this Task source, Action<Exception> handler = nul
3535
}
3636
}
3737

38-
public static void Forget(this Task task)
38+
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1801:ReviewUnusedParameters", MessageId = "task")]
39+
public static void Forget([AllowNull] this Task task)
3940
{
4041
}
4142
}

0 commit comments

Comments
 (0)