File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
src/GitVersion.LibGit2Sharp/Git Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change
1
+ using GitVersion . Extensions ;
2
+
1
3
namespace GitVersion ;
2
4
3
5
internal sealed class TagCollection : ITagCollection
4
6
{
5
7
private readonly LibGit2Sharp . TagCollection innerCollection ;
6
- internal TagCollection ( LibGit2Sharp . TagCollection collection ) => this . innerCollection = collection ;
7
8
8
- public IEnumerator < ITag > GetEnumerator ( ) => this . innerCollection . Select ( tag => new Tag ( tag ) ) . GetEnumerator ( ) ;
9
+ internal TagCollection ( LibGit2Sharp . TagCollection collection )
10
+ => this . innerCollection = collection . NotNull ( ) ;
11
+
12
+ public IEnumerator < ITag > GetEnumerator ( )
13
+ => this . innerCollection . Select ( tag => new Tag ( tag ) ) . GetEnumerator ( ) ;
9
14
10
15
IEnumerator IEnumerable . GetEnumerator ( ) => GetEnumerator ( ) ;
11
16
}
You can’t perform that action at this time.
0 commit comments