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+
13namespace GitVersion ;
24
35internal sealed class TagCollection : ITagCollection
46{
57 private readonly LibGit2Sharp . TagCollection innerCollection ;
6- internal TagCollection ( LibGit2Sharp . TagCollection collection ) => this . innerCollection = collection ;
78
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 ( ) ;
914
1015 IEnumerator IEnumerable . GetEnumerator ( ) => GetEnumerator ( ) ;
1116}
You can’t perform that action at this time.
0 commit comments