We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdf4a61 commit 62db5deCopy full SHA for 62db5de
src/GitVersion.LibGit2Sharp/Git/ReferenceCollection.cs
@@ -1,9 +1,13 @@
1
+using GitVersion.Extensions;
2
+
3
namespace GitVersion;
4
5
internal sealed class ReferenceCollection : IReferenceCollection
6
{
7
private readonly LibGit2Sharp.ReferenceCollection innerCollection;
- internal ReferenceCollection(LibGit2Sharp.ReferenceCollection collection) => this.innerCollection = collection;
8
9
+ internal ReferenceCollection(LibGit2Sharp.ReferenceCollection collection)
10
+ => this.innerCollection = collection.NotNull();
11
12
public IEnumerator<IReference> GetEnumerator() => this.innerCollection.Select(reference => new Reference(reference)).GetEnumerator();
13
0 commit comments