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

Commit bfb2cd3

Browse files
committed
Fix nullguard check
1 parent c723e48 commit bfb2cd3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/GitHub.Extensions/EnumerableExtensions.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
using System;
1+
using NullGuard;
2+
using System;
23
using System.Collections.Generic;
34
using System.Linq;
45

@@ -23,6 +24,7 @@ public static IEnumerable<TSource> Except<TSource>(
2324

2425
public static class StackExtensions
2526
{
27+
[return: AllowNull]
2628
public static T TryPeek<T>(this Stack<T> stack) where T : class
2729
{
2830
if (stack.Count > 0)

0 commit comments

Comments
 (0)