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 e2bac71 commit acb240fCopy full SHA for acb240f
src/GitVersion.LibGit2Sharp/Git/RefSpecCollection.cs
@@ -1,9 +1,14 @@
1
+using GitVersion.Extensions;
2
+
3
namespace GitVersion;
4
5
internal sealed class RefSpecCollection : IRefSpecCollection
6
{
7
private readonly LibGit2Sharp.RefSpecCollection innerCollection;
- internal RefSpecCollection(LibGit2Sharp.RefSpecCollection collection) => this.innerCollection = collection;
8
9
+ internal RefSpecCollection(LibGit2Sharp.RefSpecCollection collection)
10
+ => this.innerCollection = collection.NotNull();
11
12
public IEnumerator<IRefSpec> GetEnumerator() => this.innerCollection.Select(tag => new RefSpec(tag)).GetEnumerator();
13
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
14
}
0 commit comments